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
Post a Comment