gpt4 book ai didi

android - 谷歌眼镜 : imageView fullscreen?

转载 作者:行者123 更新时间:2023-11-30 02:42:14 25 4
gpt4 key购买 nike

使用 Google Glass,我想知道是否可以拥有一个占用所有空间的 imageView?

使用下面的代码,我在图像周围总是有 10px 的东西:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativelayoutImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0sp"
android:layout_margin="0sp" >

<ImageView
android:id="@+id/myImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
android:scaleType="fitXY"
android:src="@drawable/splashscreen" />

</LinearLayout>

最佳答案

如果您确定没有内边距或主题,您的 View 可能已经是全屏了。那个神秘的额外空间不是玻璃屏幕的一部分或不可用。

试试这个:

adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png

您会看到来自帧缓冲区的图像周围没有 10 像素。

我不确定你的情况,但这就是发生在我身上的事情。

enter image description here

关于android - 谷歌眼镜 : imageView fullscreen?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25605961/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com