2014-09-01 65 views
1

使用谷歌眼鏡,我想知道是否有可能有一個imageView佔據了所有的空間?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> 
+0

檢查您的layout.xml文件,其中此imageview在那裏。從父級佈局中刪除所有引用dimen.xnl文件的android:padding標籤。 – 2014-09-01 12:41:44

+0

事實上,我沒有發佈我的整個XML,我編輯了我的問題 – Pull 2014-09-01 12:49:45

+0

設置您的線性佈局的寬度和高度爲640和360像素.. – 2014-09-02 06:47:36

回答

1

如果你確信你沒有填充或主題,您的看法是可能已經全屏。這個神祕的額外空間不是玻璃屏幕的一部分或不可用。

試試這個:

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

你會看到,從幀緩衝器中的圖像不具有10像素周圍的圖像全部。

我不確定你的情況,但這就是發生在我身上的事情。

enter image description here

+1

是的,你可能是對的,有一些空間,但它不可用。你的截圖的想法表明,圖像已經全屏,謝謝。 – Pull 2014-09-03 13:31:25