User User - 1 year ago 166
Android Question

how to make my viewpager swipe from right to left

I have a viewpager and it contains some information but it lets me swipe the pages from left to right how can I make it swipe from left to right which means change its direction?

Answer Source

I think you can set current page to the last page using viewPager.setCurrentItem(). Then it will swipe left to right .. :)