2013-03-01 57 views
0

即時通訊試圖開發一個android應用程序,它具有在普通屏幕和舊CRT電視上運行的主要活動中的gridview ..(600X500像素例如)..android gridview佈局縮小在CRT電視上顯示時的屏幕底部

當我嘗試在模擬器上運行它與這樣的決議它似乎罰款..並在電腦屏幕上它也可以,但在電視上它只需要頂部2/3的屏幕並且圖標被切斷,並滾動.. enter image description here

這是什麼,我在電視屏幕上看到的說明

相關佈局文件:

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:background="#fffcfafa" 
android:gravity="center_horizontal" 
> 

<GridView xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/gridview" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:columnWidth="90dp" 
android:numColumns="auto_fit" 
android:verticalSpacing="20dp" 
android:horizontalSpacing="20dp" 
android:stretchMode="columnWidth" 
android:gravity="center" 
/> 

清單:

<supports-screens android:resizeable="false" 
    android:smallScreens="true" android:normalScreens="true" 
    android:largeScreens="true" android:anyDensity="true" /> 
+0

顯示代碼PLS – 2013-03-01 06:29:27

+0

點擊後問題還爲時過早。現在編輯:) – arseny 2013-03-01 06:38:09

+0

嘗試'機器人:調整大小=「真正的」' – 2013-03-01 07:48:07

回答

1

變化支持屏幕調整大小 從這個

android:resizeable="false" 

這個

android:resizeable="true" 

希望它有助於

相關問題