方式一:
<RelativeLayout
android:layout_width="fill_parent"android:layout_height="fill_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="200.0dip"
android:text="@string/beati_image_title"
android:contentDescription="@string/beati_image_title"
android:background="@color/red"
/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="90.0dip"
android:text="dd"
android:background="@color/green"
android:focusable="false" />
</LinearLayout>
</RelativeLayout>
方式二:
<RelativeLayoutandroid:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/green"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5.0dip"
android:background="@color/blue"
android:orientation="vertical">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/black"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/layout_beati_bottom"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="5.0dip"
android:layout_marginBottom="5.0dip"
android:background="@color/green"
android:orientation="vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="70.0dip"
android:text="@string/beati_image_choice"
android:textSize="20sp"
android:gravity="center"
android:background="@color/gray"
/>
</LinearLayout>
</RelativeLayout>