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:
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
精彩评论