ListViewの下に何かしら設置するとき
LinearLayoutでそのまま配置するとListViewと部品が重なるが、ListViewにandroid:layout_weight="1"
を指定すると重ならない。
<ListView android:id="@+id/listView" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> <Button android:id="@+id/button" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="button" />