android页面布局 如何让中间的listView填充剩余部分
我在做一个页面,这个页面分三块,最上面是标题栏,最下面是负责翻页的框,这两个部分在屏幕中位置始终不变,如果中间再加一个listView怎么让listView填充剩余部分呢,如果listView过长就会把下面的框推出去了
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>