布局文件:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
android:weightSum="1" >
<TextView
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="@color/pink" />
<ListView
android:id="@+id/lv_error"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp" >
</ListView>
<Button
android:id="@+id/btn_delete_checked"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_alignParentBottom="true"
android:text="删除所选"
android:background="@drawable/btn_no_frame_delete"
android:textColor="@color/white"
android:visibility="gone" />
</LinearLayout>
效果之正常状态:
效果之编辑状态: