views:

186

answers:

2

Hi,

I have multiple ListViews and would like to add those to Gallery.

I tried with addView but it is not supported since Gallery view is an AdapterView.

Can someone let me know how to go about it?

Regards

Sunil

A: 

I have multiple ListViews and would like to add those to Gallery.

That is unlikely to work. Either the Gallery or the ListView scrolling probably will not function.

I tried with addView but it is not supported since Gallery view is an AdapterView.

Correct.

Can someone let me know how to go about it?

You will need to create an Adapter containing your ListViews, and hand that Adapter to your Gallery.

CommonsWare
Thanks for replying. Can you let me know what shall I do for making the Gallery view move to the next View only. Currently the Gallery moves according to the swipe force. But I will like to move to the next view only. Is this possible?
sunil
A: 

An example on how to use the Gallery class together with an Adapter can be found here. The adapter in this example provides images. You could provide your ListViews

Maurits Rijk