Code example for Scroller

Methods: computeScrollOffsetgetCurrXgetCurrY

0
		invalidate();
	} 
 
	@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));
			mNextScreen = INVALID_SCREEN;
			post(new Runnable() {
				@Override public void run() { 
					postViewSwitched(mLastScrollDirection);
				} 
			}); 
		} 
	} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE