Search code examples
androidhorizontalscrollview

How to use Android HorizontalScrollView to move image one by one


I want to create an image slider using the HorizontalScrollView. Indeed, the slider will display one image at the time and I want to be able to use the fling gesture to navigate left and right in the slider. Any Idea to which methods to override in the HorizontalScrollView to achieve this. Thanks a lot. Best


Solution

  • You could use Gallery with Image Switcher view to achieve this

    This Link is usefull to you for better way to implement Android HorizontalScrollView to move image one by one.

    Link :http://saigeethamn.blogspot.in/2010/05/image-switcher-view-android-developer.html

    video: http://www.youtube.com/watch?v=c6a6wTfSPJA

    EDIT : If you want to implement Complex way refer this Links

    1. Link1
    2. Link2