I have screen with 18 buttons, Is it possible to make this group of buttons scrollable so that user can see buttons which are out of the viewable area. I tried putting these buttons in ScrollView but got the exception that only their can be only 1 child of scroll view.
Currently the buttons are present in a RelativeLayout like:
<Button
android:id="@+id/btnChapter2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnChapter1"
android:layout_below="@+id/btnChapter1"
android:text="Chapter 2" />
<Button
android:id="@+id/btnChapter3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnChapter2"
android:layout_below="@+id/btnChapter2"
android:text="Chapter 3" />
<Button
android:id="@+id/btnChapter4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnChapter3"
android:layout_below="@+id/btnChapter3"
android:text="Chapter 4" />
<Button
android:id="@+id/btnChapter5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnChapter4"
android:layout_below="@+id/btnChapter4"
android:text="Chapter 5" />
<Button
android:id="@+id/btnChapter6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnChapter5"
android:layout_below="@+id/btnChapter5"
android:text="Chapter 6" />
The current screen with buttons 9, 17 and 18 being screwed up looks as: