There was a problem creating a gallery in jelly beans

I am creating a picture gallery for new jroidbeans for Android. But I learned from here that the gallery widget is out of date, and they suggested using ViewPager or HorizontalScrollView for use. I decided to use HorizontalScrollView to create my gallery.

But after a while I found that we cannot install the adapter in the HorizontalScrollView. Now I am confused how to create my gallery in jellybeans. Help me with your suggestions. Any help would be greatly appreciated.

Thanks.

+4
source share
1 answer

Here is an article and component that subclasses AdapterView for a horizontal ListView . It uses recirculation and the standard AdapterView.OnItemClickListener . Note: it does not automatically β€œsnap” to the center view.

0
source

All Articles