Android 谷歌眼镜:全屏幕图像视图?
使用Google Glass,我想知道是否有可能拥有一个占据所有空间的imageView 使用以下代码,我在图像周围始终有10px的大小:Android 谷歌眼镜:全屏幕图像视图?,android,imageview,google-glass,google-gdk,Android,Imageview,Google Glass,Google Gdk,使用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=
<?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>
如果您确定没有填充或主题,您的视图可能已经全屏显示。那个神秘的额外空间不是玻璃屏幕的一部分,也不可用 试试这个:
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
您将看到帧缓冲区中的图像周围没有10像素
我不确定你的情况,但我就是这样
检查此imageview所在的layout.xml文件。从父布局中删除所有引用dimen.xnl文件的android:padding标记。事实上,我没有发布我的整个xml,我编辑了我的问题将线性布局的宽度和高度设置为640和360像素。@PrasannaAarthi好主意,但它不起作用,甚至使用“sp”或“dp”作为统一。是的,你可能是对的,有一些空间,但它是不可用的。你的想法截图显示,图像已经全屏,谢谢。