fill_parent not filling parent?
I am working with the new 10.1 galaxy tab google handed out at IO. I'm new to android layout but the Graphical Layout in eclipse looks fine but my app does not fill the parent on the tab.
This is 开发者_开发知识库my main.xml
:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/red"
android:layout_width="fill_parent" android:layout_height="fill_parent">
</LinearLayout>
This is what i see
Add next tag to your AndroidManifest.xml
<manifest>
...
<supports-screens
android:resizeable="true" />
</manifest>
You can find more information about this tag here.
Perhaps this explanation of Screen Compatibility mode would help solve the problem: http://developer.android.com/guide/practices/screen-compat-mode.html
精彩评论