Reputation: 83
I would like to implement a list view that contains a series of thumbnails on each row. I have tried a list view with embedded gallery widgets. It's not working, nothing is being displayed. Just wondering if I'm on the right path, or should I use a different widget for this layout.
Row 1: Image1 Image 2 Image3 Row 2: Image1 Image 2 Image3 etc.
Thanks.
Upvotes: 1
Views: 809
Reputation: 83
I was able to solve this problem by creating a scroll view that contained a linear layout. In my code I programmatically added HorizontalScrollView objects, found here: https://github.com/vieux/Android-Horizontal-ListView. Thanks
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/my_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:focusable="true"
android:descendantFocusability="afterDescendants"
android:layout_marginTop="?android:attr/actionBarSize"
android:fillViewport="true">
<LinearLayout
android:id="@+id/listLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
</ScrollView>
Upvotes: 1
Reputation: 1089
You can try putting horizontal scroll view inside list view.
Upvotes: 0