为什么Android应用程序在平板电脑模拟器上的小窗口中运行? [英] Why does Android app run in small window on tablet emulator?
问题描述
我有一个 Android 应用程序,它可以在 android 手机上正常运行.我已经下载了 Android 3.0 sdk 并使用 Android 3.0 创建了一个 1024x600 的平板电脑模拟器.当我测试我的应用时,它运行在一个以顶部为中心的小窗口中,使用屏幕的大约 1/4.
I have an Android App, it works properly on android phones. I've downloaded Android 3.0 sdk and created a tablet emulator at 1024x600, using Android 3.0. When I test my app it runs in a small window centered at the top, using about 1/4 of the screen.
我必须在应用、xml 文件或清单中更改哪些内容才能使用整个平板电脑屏幕?
What do I have to change in the app, xml files, or manifest to get it to use the whole tablet screen?
作为旁注,我还有 drawable-ldpi、hdpi 和 mdpi 的图标.
As a side note I also have icons for drawable-ldpi, hdpi and mdpi.
谢谢,格里
推荐答案
较早的 sdk 不支持超大屏幕,因此您需要在清单中指定新的 sdk 版本.我会查找详细信息,但现在快速解决方法是添加:
The earlier sdk's did not have support for the extra large screens, so you need to specify in the manifest a new sdk version. I'll look up the details, but for now a quick fix is to add:
<uses-sdk android:targetSdkVersion="4"/>
到您的清单.
这篇关于为什么Android应用程序在平板电脑模拟器上的小窗口中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!