views:

167

answers:

2

Hi Folks,

Is there any Possible to make the ListView horizontally? I done this Using Gallery view. But the Selected item comes to the center of the Screen Automatically. I want to avoid it. the selected item at the same spot i have clicked. How to Rectify this Problem? My Idea is to set the ListView with Horizontal Scroll. Share Your Idea?

A: 

This isn't much of an answer, but how about using a Horizontal Scroll View?

Faisal
It Works. But If i have large number of items then can not use the adapter kind of stuff and click events.
Praveen Chandrasekaran
A: 

well you can always create your textviews etc dynamically and set your onclicklisteners like you would do with an adapter

weakwire
@weakwire: what do you mean? i cant get you? please post code snippet about your idea?
Praveen Chandrasekaran
please tell me the purpose of the "horizontal listview" will it have complex /multi views? eg 2 textboxes 1 progressbar? or just let's say plain text?Also do you have a fixed number of elements inside that view or you want to change it dynamically? Answer me these and i'll be able to help you with code
weakwire
@weakwire: i want to do the horizontal text gallery. but the selected item comes to the center as default. I want to be the selected item must be where i clicked that. please also check my posts: http://stackoverflow.com/questions/3237566/text-gallery-on-android and http://stackoverflow.com/questions/3318617/textview-on-horizontal-scrollview-in-android
Praveen Chandrasekaran