這是我工作的xml代碼..現在我想在不改變列表視圖的高度的情況下在列表視圖下添加兩個文本視圖和一個按鈕。無法在列表視圖下方添加文字視圖和按鈕使用
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearlayout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ListView
android:id="@+id/orderlist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:divider="#778899"
android:dividerHeight="1dp" >
</ListView>
<LinearLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="vertical" >
<include layout="@layout/footer" />
</LinearLayout>
</RelativeLayout>
的RelativeLayout不需要取向。 – Piyush 2014-12-03 10:45:16
但沒有頁腳....? – yamuna 2014-12-03 10:47:08