<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/tv_top" android:layout_width="fill_parent" android:layout_height="50dip" android:background="#606060" android:layout_alignParentTop="true" android:text="顶部" /> <ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/tv_top" android:layout_above="@+id/tv_bottom" /> <TextView android:id="@+id/tv_bottom" android:layout_alignParentBottom="true" android:layout_width="fill_parent" android:layout_height="50dip" android:background="#606060" android:text="底部" /> </RelativeLayout>