Proper way to implement a two way listview in android

1.4k views Asked by At

I am trying to create a listview, each row of which should be horizontal listview. And I need to add items dynamically. For example, if each item in my horizontal listview can be represented as a class Item, then I should be able to create an adapter which displays ArrayList of Item and also, I should be able to create an adapter for vertical listview that displays ArrayList containing ArrayList of Item. Is there any proper, standard and clean method to make it work?

1

There are 1 answers

0
Milad Faridnia On BEST ANSWER

I suggest you take a look at VerticalHorizontalListView and twoway-view libraries that implement such list view and of course this link might be a help, which explains how to implement Dynamic Shelfview in Android.

I found this post on SO : Horizontal ScrollView in List View Item Android which explains the issue prefectly, you can take a look at that too. I hope this links help you ;)