Android 3.0 平板电脑上的应用程序被缩小
如此处所示 我的应用程序在 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 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的应用似乎在某种屏幕兼容模式。点击链接并了解
AndroidManifest.xml
中的哪些条件可能会导致您的应用进入此状态。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.清单中很可能不包括 xLargeScreens:
http://developer. android.com/guide/topics/manifest/supports-screens-element.html
希望就是这样/并且有帮助。
应该有帮助。
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.
Should help.
你的 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.