问题
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