Question

I have a set of around 300 images. I want to implement scroll view of images. when I scroll, then next image should be displayed.

When I went through different forums and documentation I found that there are many ways to do this. HorizontalScrollView, Gallery, ViewAnimator,ViewSwitcher etc

Please tell me what is best and efficient way to implement. I should also have the ability to zoom each individual image.

Was it helpful?

Solution

The Gallery widget is deprecated since Jelly Bean.

you can use ViewPager or HorizontalScrollView for your purpose.

From the Gallery doc:

This class is deprecated. This widget is no longer supported. Other horizontally scrolling widgets include HorizontalScrollView and ViewPager from the support library.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top