Reputation: 21
I've got a little problem;
I've been searching for something like a horizontal listview, the almost perfect I found was the Gallery, I even got it working. Thing is: it's too old :P
Now I found a perfect replacement the "Viewpager", but I can't seem to find a way to use something like an Arrayadapter to fill the Viewpager like a listview.
Can someone help me with an example or give me something else I should use?
Thanks in advance ;)
Upvotes: 1
Views: 2894
Reputation: 1288
Two Way Gridview https://github.com/jess-anders/two-way-gridview the easiest. While viewpager has its own PagerAdapter
Upvotes: 0
Reputation: 3885
Check this out: http://spacetech.dk/android-viewpager-with-listview-pages.html
Only thing left to do is to replace in your layout this:
android:orientation="vertical"
with this:
android:orientation="horizontal"
Hope this helped.
Upvotes: 1