1

如此处所见,这张照片我的应用程序在带有 Android 3.0 的三星 Galaxy Tab 上缩小了

它在模拟器中也缩小了,但在图形布局中看起来还可以。主.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>

在手机屏幕上没问题。

4

3 回答 3

2

看起来您的应用程序在某种屏幕兼容模式下运行。点击链接并阅读您的哪些条件AndroidManifest.xml可能会导致您的应用进入此状态。

于 2011-12-22T10:02:07.773 回答
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"/>

应该有帮助。

于 2011-12-22T09:54:58.823 回答
1

您的 android XML 看起来不错,除非您有用于大/超大屏幕的不同布局资源,否则很难看出这可能是一个问题。

考虑问题不在 android XML 中而是在显示的 HTML/CSS 中的可能性?那就是你在屏幕上看到一个大的 webview,只有一小部分 HTML 填充它。

于 2011-12-22T10:02:13.630 回答