<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@+id/_lv_labels"
android:layout_width="wrap_content"
android:layout_height="195dp"
android:layout_marginLeft="50dp"
android:layout_marginRight="40dp"
android:layout_marginTop="1dp"
android:choiceMode="multipleChoice"
android:cacheColorHint="@drawable/white" />
</RelativeLayout>
<TableLayout
android:id="@+id/TableLayout01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:stretchColumns="*"
android:gravity="bottom">
<TableRow
android:id="@+id/TableRow01">
<Button
android:id="@+id/_btn_scannewitem"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_marginRight="2dp"
android:background="@drawable/button_background"
android:text="Scan New Item" />
<Button
android:id="@+id/_btn_saveNewItem"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_marginLeft="2dp"
android:background="@drawable/button_background"
android:text="Save Your Item"
android:visibility="gone" />
<Button
android:id="@+id/_btn_changeprofile"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:layout_marginLeft="2dp"
android:background="@drawable/button_background"
android:text="Change Profile" />
</TableRow>
</TableLayout>
上記は、リストビューとボタンを表示するために使用したコードですが、私が言及したこのデザインには適していません
ページの下部にボタンを配置したいという点で、Androidアプリで作業しています。リストで利用可能なアイテムを表示するには、リストビューが必要です.2つのアイテムしか表示されません。私は下に述べた画像のようにしたい。