次のような単純な xml レイアウトをコーディングしました。
<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="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ARRAYADAPTER" />
<ListView
android:id="@+listview/lw"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
<Button
android:id="@+button/b1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="NEXT"
android:gravity="center"/>
</LinearLayout>
リストビュー内に配列アダプターを設定します。このアプリを起動すると、buttod が表示されません。私がしたいのは、レイアウトを3つの部分に分割することです: -上部のテキストビュー -中央のアダプター(スクロールあり) -ボタン(または複数)を下部に。どうすればできますか?