为什么Android应用程序在平板电脑模拟器小窗口中运行?小窗、模拟器、平板、应用程序

2023-09-04 23:40:22 作者:无风无雨也无晴

我有一个Android应用程序,它工作正常Android手机。我下载的Andr​​oid 3.0 SDK,并在1024×600开创了平板电脑仿真器,采用Android 3.0。当我测试我的应用程序运行在一个小窗口集中在顶部,使用关于屏幕的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?

作为一个方面说明我也有图标绘制-LDPI,华电国际和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"/>

你的清单。