2011-12-22 23 views
1

收縮正如在這裏看到this picture我的應用進行了收縮對三星Galaxy Tab採用Android 3.0應用大幹快上的Android 3.0平板

它也收縮在模擬器,但在圖形佈局看起來OK。 main.xml:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:orientation="vertical" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
    > 

<WebView android:id="@+id/web_engine" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     /> 
</LinearLayout> 

在手機屏幕上可以。

+1

你可以發佈你的'AndroidManifest.xml'嗎? – kaspermoerch 2011-12-22 09:51:29

回答

1

最有可能不包括在清單xLargeScreens:

http://developer.android.com/guide/topics/manifest/supports-screens-element.html

希望就是它/和幫助。

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

應該有所幫助。

+0

就是這樣。謝謝。這是我的第一個Android應用程序:) – Trick 2011-12-22 10:09:28

+0

太棒了。這是我對Stack的第一個回答,我是對的!樂於幫助=)編輯:恭喜你的第一個應用程序! – TryTryAgain 2011-12-22 10:11:17

2

它看起來像你的應用程序運行在某種Screen Compatibility Mode。請點擊此鏈接,並詳細瞭解您的AndroidManifest.xml中的哪些條件可能會導致您的應用進入此狀態。

1

您的android XML看起來很好,除非您有大/ xlarge屏幕的不同佈局資源,否則很難看出這可能是一個問題。

考慮問題不在android XML中,但在顯示的HTML/CSS中的可能性?那就是你在屏幕上看到一個很大的web視圖,只有一小部分的HTML填充它。

相關問題