Code example for Scroller

Methods: computeScrollOffsetgetCurrXgetCurrY

0
        return true; 
    } 
 
    @Override 
    public void computeScroll() { 
        if (mScroller.computeScrollOffset()) {
            scrollTo(mScroller.getCurrX(), mScroller.getCurrY());
            postInvalidate();
        } else if (mNextScreen != INVALID_SCREEN) {
            mCurrentScreen = Math.max(0, Math.min(mNextScreen, getChildCount() - 1));
 
            // Notify observer about screen change 
            if (mOnScreenSwitchListener != null) {
                mOnScreenSwitchListener.onScreenSwitched(mCurrentScreen);
            } 
 
            mNextScreen = INVALID_SCREEN;
        } 
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java