开发者

Android Application doesn't occupy the entire screen

I am trying to run my application on a custom screen resolution but my application is centered and only occupies 320x480 (Portrait) and 480x320 (Landscape) of the screen and is horizontally aligned to the top of the activity.

While other apps and the default android activities behave apt开发者_开发百科ly my application doesn't. I haven't used any fixed values or layout properties. It's just a hello world app.

Android Application doesn't occupy the entire screen

I have tried themes and window features but nothing seem to work. Any pointers would be greatly appreciated. Thanks.


Kumar Bibek has answerd this question in a similar post.

The application was running in compatibility mode for tablets. I added the following to my AndroidManifest.xml and it works fine.

<supports-screens android:largeScreens="true"
      android:normalScreens="true" android:smallScreens="true"
      android:anyDensity="true" android:xlargeScreens="false" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜