开发者

Android layout doesn't stretch on full screen

I have a problem with layout which won't stretch within high resolution like 1024x600.

As root layout I use RelativeLayout with following style:

 <style name="DefaultLayou开发者_如何学编程t">
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">fill_parent</item>
 </style>

I want to stretch layout to any screen resolution but on emulator with high resolution it looks like this:

Android layout doesn't stretch on full screen

If it's important I didn't use images with fixed size, header and footer it's a 1px vertical line which duplicates horizontally and the list items implemented as shapes... so there is no point where it may took some fixed size... maybe I am checking this in a wrong way... Actually I didn't figured out what is the problem


Most likely you have not added proper screen support attributes in your AndroidManifest and the application as a whole is being scaled to part of the screen.

Read these

http://developer.android.com/guide/practices/screens_support.html

http://developer.android.com/guide/topics/manifest/supports-screens-element.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜