1

Possible Duplicate:
Horizontal ListView in Android?

I am creating a listView by inflating a xml file,,I want my list to be scrolled Horizontal as well as Vertically my content are hiding in left part of screen.

Can someone tell me how to scroll a list horizontally.??

Updated

I can use HorizontalScrollView But it will scroll horizontally.I want both scrollbar to be enable

CalvT
  • 3,123
  • 6
  • 37
  • 54
Tofeeq Ahmad
  • 11,935
  • 4
  • 61
  • 87

1 Answers1

2

Instead of using ListView use Gallery - it will be scrolled horizontal, and can be filled with datas in the same way as the ListView.

EDIT: Look at this post: Horizontal ListView in Android?, there are code samples of what you need.

Community
  • 1
  • 1
Kocus
  • 1,613
  • 17
  • 31
  • but what if go listview as its has several advantage over Gallery – Tofeeq Ahmad Oct 21 '11 at 12:47
  • I've edited my answer, look above. – Kocus Oct 22 '11 at 08:23
  • its scrolling only horizontally i want both behavior as needed.If horizontal content is big then it would scroll horizontally as well as vertically\ – Tofeeq Ahmad Oct 24 '11 at 04:17
  • I see 2 solutions : implementing your custom Adapter, or using `ScrollView` (only for simple data, because it do not have view caching, and will work slow on larger datas). – Kocus Oct 24 '11 at 07:23