How to implement left and right gesture gestures in Android.

enter image description here

I am new to android.I want to implement right and left functionality with my application. Therefore, when I scroll left, the next fruit photo appears, and when I scroll back the previous one display. How can I get this functionality using android ?.

Thanks in advance...

+4
source share
1 answer

This function is provided by the ViewPager class: http://developer.android.com/reference/android/support/v4/view/ViewPager.html

Alternatively, when you create a new Android application with Eclipse, after clicking Next several times before clicking Finish, the Navigation Type option will appear. Select "Fixed Tabs + Swipe" or "Scrollable tabs + Swipe" and Android will instantly create sample codes.

+3
source

All Articles