android页面布局(listview填充中间)

<?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>

 

posted on 2014-04-14 17:10  strangeman  阅读(609)  评论(0编辑  收藏  举报

导航