How can I make a horizontal ListView in Android? [duplicate]
Solution 1:
After reading this post, I have implemented my own horizontal ListView
. You can find it here: http://dev-smart.com/horizontal-listview/ Let me know if this helps.
Solution 2:
Have you looked into using a HorizontalScrollView to wrap your list items? That will allow each of your list items to be horizontally scrollable (what you put in there is up to you, and can make them dynamic items similar to ListView). This will work well if you are only after a single row of items.
Solution 3:
You know, it might be possible to use an existing ListView with some judicious overriding of dispatchDraw()
(to rotate the Canvas by 90 degrees), onTouch()
(to swap the X and Y of the MotionEvent coords) and maybe onMeasure() or whatever to fool it into thinking it's y by x rather than x by y...
I have no idea if this would actually work but it'd be fun to find out. :)