简体   繁体   中英

How to implement Image Scroll view in android?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM