3

Possible Duplicate:
How can I make a horizontal ListView in Android?

I have used Vertical ListView Many Times but for certain requirements I want to implement the Horizontal ListView, Also list Items will come dynamically.Please help me to get the horizontal Listview.

Community
  • 1
  • 1
user1196969
  • 335
  • 2
  • 5
  • 14

1 Answers1

7

The Android API seems to be lacking a Horizontal ListView widget.

So In other tutorials, developer are implemented it using Gallery or HorizontalScrolllView.

Actually Gallery is make it easy because you can use Adapter with it so at runtime you can add custom view in it. And it look likes a Horizontal ListView.

Just go through the below link,

In all possible way this would be recommended Android Horizontal ListView

Also this SO question How can I make a horizontal ListView in Android?

Community
  • 1
  • 1
user370305
  • 108,599
  • 23
  • 164
  • 151
  • ok,This is fine but here are values hardcoded but in my case values will come dynamically – user1196969 May 16 '12 at 11:13
  • 1
    Just add Your dynamically data in adapter then set it to HorizontialListView. It works as like a ListView just add data to adapter dynamically and set to listview at runtime also call notifyDataSetChanged() to adapter. – user370305 May 16 '12 at 11:16
  • using dev-smart horizontal listview with an adapter and notifyDataSetChanged working like a charm . – moujib May 16 '12 at 11:42
  • try this http://indrapatel.blogspot.in/2013/10/horizontal-listview-in-android.html – Indra Oct 21 '13 at 08:25
  • The link in the original reply has broken, content can now be found at: http://dev-smart.com/horizontal-listview/. – WalterB Apr 11 '16 at 13:27