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
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
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
.
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