How do I make my android apps fill the screen on Honeycomb?

泪湿孤枕 提交于 2019-12-24 04:47:06

问题


I just got a Xoom on Wednesday, and upon loading my apps onto it, they run in a small window, as if they are being run on a smaller device.

Various other apps fill the screen of the Xoom, although they don't seem to be using any specific honeycomb APIs, as they just seem to be the same UI I get on my phone, just stretched to fit.

How would I go about getting my apps to fill the screen? Do I have to use fragments, or is there a simpler way?


回答1:


I figured it out:

I simply had to set the minSdkVersion in my manifest to 4 (1.6). This is because the SupportsScreens attribute of the manifest needed android:resizeable to be set to true. I could have set android:resizeable to true manually, but in API levels 4 and higher, it is set to true by default. http://developer.android.com/guide/topics/manifest/supports-screens-element.html




回答2:


add this.

supports-screens android:resizeable="true"

in manifest file so that your screen size be resizeable.


来源:https://stackoverflow.com/questions/5521233/how-do-i-make-my-android-apps-fill-the-screen-on-honeycomb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!