Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ViewPager Automatic Partial Swipe

I have got three pages in my viewpager and by default i have to set the middle one. But for the first time I want to swipe the viewpager a little left and then right to indicate to a user that there are also two more pages, left and right to it. Please guide regarding the automatic partial swipe of viewpager.

Thanks.

like image 917
Prateek Kaushik Avatar asked Nov 10 '22 05:11

Prateek Kaushik


1 Answers

please refere this sample code.In this example you will get how to do automatic swipe of viewpager.

https://github.com/JakeWharton/Android-ViewPagerIndicator

before using this library i also have some problem when i use pager.

like image 151
bhavesh kaila Avatar answered Nov 15 '22 06:11

bhavesh kaila