リストを表示する画面レイアウト

┌───────────┐
│┌─────────┐│
││リストデータ      ││
││                  ││
││                  ││
││                  ││
││                  ││
││                  ││
││                  ││
││                  ││
││                  ││
││                  ││
││                  ││
│└─────────┘│
│┌──┐┌──┐      │
││決定││戻る│      │
│└──┘└──┘      │
└───────────┘

みたいな画面を作成するためのXML定義

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent">
    <ListView android:id="@+id/listViewDeviceList"
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:layout_above="@+id/buttonOK"
              android:layout_alignParentTop="true">
    </ListView>
    <Button android:id="@+id/buttonOK"
            android:text="決定 " 
            android:layout_alignParentBottom="true"
            android:layout_height="50dip"
            android:layout_width="120dip">
    </Button>
    <Button android:id="@+id/buttonCancel"
            android:text="戻る "  
            android:layout_height="wrap_content"
            android:layout_toRightOf="@+id/buttonOK"
            android:layout_alignTop="@+id/buttonOK"
            android:layout_alignBottom="@+id/buttonOK" 
            android:layout_width="120dip">
    </Button>
</RelativeLayout>