Code example for Scroller

Methods: computeScrollOffsetgetCurrXgetCurrYisFinished

0
	} 
	 
	@Override 
	public void computeScroll() { 
		super.computeScroll(); 
		if (!scroller.isFinished()) {
			boolean ok = scroller.computeScrollOffset();
			if (ok) {
				int oldX = getScrollX();
				int oldY = getScrollY();
				int newX = scroller.getCurrX();
				int newY = scroller.getCurrY();
				if (oldX != newX || oldY != newY) {
					scrollTo(newX, newY);
				} 
				invalidate();
			} 
		} 
	} 
	 
Stop searching for code, let great code find you!  Add Codota to your java IDE