Search code examples
androidviewflipper

Flip images using viewflipper in android without buttons


I am using the following method of flipping images: How to set dymanic images to ViewFlipper in android?

I do not want to flip using buttons. When the user touches the images or swipes the image I want to flip to the next image. Is there a way I can achieve this?


Solution

  • You can use ViewPager. See these links:

    Implementing Horizontal View Swiping Using ViewPager and FragmentPagerAdapter in Android

    Horizontal View Swiping with ViewPager, Updated

    Android Viewpager as Image Slide Gallery (Swipe Gallery)

    and this Library

    Support Library