Nested a GridView
with 22 items into HorizontalScrollView
. GridView
has 22 item, 4 column 6 rows, in the last only 2 item placed without nesting. But after nesting only the first column appears, so 1 column and 6 rows with images. Why not all the item with horizontal scrolling option? I guess something wrong, or missing from HorizontalScrollView
setup.
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/seatLegendLayout">
<GridView
android:id="@+id/gridView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:columnWidth="100dp"
android:gravity="center"
android:numColumns="4"
android:horizontalSpacing="1dp"
android:scrollbarAlwaysDrawHorizontalTrack="true"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbars="horizontal"
android:stretchMode="none"
android:verticalSpacing="1dp">
</GridView>
</HorizontalScrollView>