question: private void postInitViewPager ( ) { try { Class < ? > viewpager = ViewPager . class ; Field scroller = viewpager . getDeclaredField ( "mScroller" ) ; scroller . setAccessible ( true ) ; Field interpolator = viewpager . getDeclaredField ( "sInterpolator" ) ; interpolator . setAccessible ( true ) ; mScroller = new ScrollerCustomDuration ( getContext ( ) , ( Interpolator ) interpolator . get ( null ) ) ; scroller . set ( this , mScroller ) ; } catch ( Exception e ) { } }
target:  Override the Scroller instance with our own class so we can change the duration