Android 3.0 平板电脑上的应用程序被缩小

发布于 2024-12-22 14:16:40 字数 594 浏览 4 评论 0原文

如此处所示 this picture 我的应用程序在 Android 3.0 的 Samsung Galaxy Tab 上缩小

它在模拟器中也缩小了,但在图形化时布局看起来还不错。 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>

在手机屏幕上没问题。

As seen here this picture my app gets shrinked on Samsung Galaxy Tab with Android 3.0

It is also shrinked in emulator, but at graphical layout it looks 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>

It is OK on phone screens.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

我不咬妳我踢妳 2024-12-29 14:16:40

It looks like your app is run in some kind of Screen Compatibility Mode. Follow the link and read up on what conditions in your AndroidManifest.xml might cause your app to enter this state.

浴红衣 2024-12-29 14:16:40

清单中很可能不包括 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"/>

应该有帮助。

Most likely not including xLargeScreens in the Manifest:

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

Hope that is it/and helps.

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

Should help.

亢潮 2024-12-29 14:16:40

你的 android XML 看起来很好,除非你有针对大/超大屏幕的不同布局资源,否则很难看出这会是一个问题。

考虑一下问题可能不在 android XML 中,而是在显示的 HTML/CSS 中?也就是说,您在屏幕上看到一个大的 Web 视图,其中只有一小部分 HTML 显示。

Your android XML look fine and unless you have a different layout resource for large/xlarge screens it is hard to see how this could be a problem.

Consider the possibility that the issue is not in the android XML but in the displayed HTML/CSS? That is that you are seeing a large webview on the screen with only a small display of HTML filling it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文