Search code examples
androidjsonhorizontalscrollview

Android Display Image and Text in HorizontalScrollView


So, I have this layouts:

my main.xml (pseudo)

<LinearLayout  >
<RelativeLayout> 
    <HorizontalScrollView >
        <LinearLayout

        </LinearLayout>
    </HorizontalScrollView>

</RelativeLayout>

and then list.xml

<FrameLayout>
     <ImageView>
     <TextView>
<FrameLayout>

How can fill up my display with data from json without using ListView and GridView? How to iterate the data from my json to display it in the HorizontalScrollView? Because i want to display it horizontally. I've used GridView and i thought i can customize it. SO, without using ListView and GridView I want to display my data (image and text) horizontally.


Solution

  • I am used this.

    for the horizontal listview like you.

    In my case it is work perfect Horizontal list view with image,image select/unselect,drag and drop and many more.

    If you find any problem then let me know.