The previous approach was to list buttons in a TableLayout. However, this approach does not work well if there are more items than can fit on the screen. To allow scrolling of items, and also a better presentation of said items, use a ListView.
11 lines
550 B
XML
11 lines
550 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/availableChildrenList"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSmall"
|
|
android:gravity="center_vertical"
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall" />
|