DBから連絡先アドレスを取得してリストビューに表示する2つの同様のプロジェクトがあります。連絡先を選択してボタンをクリックする必要があります。以下はレイアウト ファイルです (両方のプロジェクトで使用したものと同じです)。1 つのプロジェクトはボタン付きのリストを表示しますが、もう 1 つのプロジェクトはボタンではなくリストを表示します。おすすめはありますか?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:orientation="vertical"
tools:context=".MainActivity" >
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:stackFromBottom="false"
android:transcriptMode="normal"
android:choiceMode="multipleChoice" >
</ListView>
<Button
android:id="@+id/SelectBtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/selectBtn"
android:layout_weight="0" />
</LinearLayout>