ListViewには独自のスクロールがあるため、「ListViewをScrollViewに入れない」というのは非常に悪い習慣です。ただし、ListView に追加する項目 (ボタンとテキストビュー) がいくつかあります。それらについては、間違いなく ScrollView を使用する必要があります。リストビューの崩壊を防ぐための解決策(http://nex-otaku-en.blogspot.com/2010/12/android-put-listview-in-scrollview.html )を見つけました。しかし、私が言ったように、XML フォームのすべての項目をカプセル化する ScrollView が必要です。xml コードを追加しました。これを達成する方法を教えてください。
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/listView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:choiceMode="singleChoice">
</ListView>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button1" />
</LinearLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/longtext" />
</LinearLayout>
</ScrollView>