animation - Using ScreenSlider from developer.android.com . How to jump to specific page? -


i using screenslider http://developer.android.com/training/animation/screen-slide.html . running using 5 pages . want directly jump 1 page . e.g user @ 2 page , on clicking button jumps 5 page . how implement this. there predefined methods .please help?

use setcurrentitem http://developer.android.com/reference/android/support/v4/view/viewpager.html#setcurrentitem(int

mviewpager.setcurrentitem(4) // moving 5th page 

or

mviewpager.setcurrentitem(4, true) // move with animation 

Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -