Android LinearLayout未扩展全屏

Android LinearLayout未扩展全屏,android,layout,screen,Android,Layout,Screen,嗨,我正在为DroidX编写一个应用程序,它是480x854。我的AVD设置如下: 目标:API 7级 皮肤:480x854 液晶显示器,密度:160 就这样。模拟器加载良好,看起来很棒,但由于某些原因,我的应用程序无法填充父对象。请看这里: 它不能一直向上扩展,我不知道为什么。以下是我的XML: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android

嗨,我正在为DroidX编写一个应用程序,它是480x854。我的AVD设置如下:

目标:API 7级
皮肤:480x854
液晶显示器,密度:160

就这样。模拟器加载良好,看起来很棒,但由于某些原因,我的应用程序无法填充父对象。请看这里:

它不能一直向上扩展,我不知道为什么。以下是我的XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

<ImageView android:src="@drawable/logo_recruiting"
    android:background="#FF000000" 
    android:adjustViewBounds="true"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:padding="30dip" />

<LinearLayout android:orientation="vertical"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:layout_weight="1" 
    android:gravity="center"
    android:background="@drawable/menu_background">
    <Button android:layout_height="wrap_content"
        android:layout_width="wrap_content" 
        android:layout_marginBottom="25dip"
        android:text="@string/events"
        android:textColor="#FFFFFFFF"
        android:textSize="22dip"
        android:paddingBottom="5dip"
        android:background="@drawable/events_button"
        android:onClick="launchEventsMap"
        android:id="@+id/events_button"
        />
    <Button android:layout_height="wrap_content"
        android:layout_width="wrap_content" 
        android:layout_marginBottom="25dip"
        android:text="@string/jobs"
        android:textColor="#FFFFFFFF"
        android:textSize="22dip"
        android:paddingBottom="5dip"
        android:background="@drawable/jobs_button"
        android:id="@+id/jobs_button"
        />
    <Button android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_marginBottom="25dip" 
        android:text="@string/applicants"
        android:textColor="#FFFFFFFF"
        android:textSize="22dip"
        android:paddingBottom="5dip"
        android:background="@drawable/applicants_button"
        android:id="@+id/applicants_button"
        />
    <Button android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_marginBottom="25dip" 
        android:text="@string/resumes"
        android:textColor="#FFFFFFFF"
        android:textSize="22dip"
        android:paddingBottom="5dip"
        android:background="@drawable/resumes_button"
        android:id="@+id/resumes_button"
        />
    <Button android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_marginBottom="25dip" 
        android:text="@string/settings"
        android:textColor="#FFFFFFFF"
        android:textSize="22dip"
        android:paddingBottom="5dip"
        android:background="@drawable/settings_button"
        android:id="@+id/settings_button"
        />
    </LinearLayout>
</LinearLayout>


我认为这是因为您的
图像视图超出了
线性布局
,可能尝试将整个内容包装在
相对视图中
此屏幕分辨率将落入分隔屏幕大小。在清单中支持的屏幕下启用大密度或任意密度

我可以想象layout\u width=“fill\u parent”和layout\u height=“fill\u parent”应该这样做……不,它的图像视图在前面的线性布局中。