Code example for Scroller

Methods: startScroll

0
	 * 
	 * @param dx the number of pixels to scroll by on the X axis 
	 * @param dy the number of pixels to scroll by on the Y axis 
	 */ 
	public final void smoothScrollBy(int dx, int dy) {
		mScroller.startScroll(getScrollX(), getScrollY(), dx, dy);
		invalidate();
		mIsLayoutDirty = true;
	} 
 
	/** 
	 * Like {@link #scrollTo}, but scroll smoothly instead of immediately. 
	 * 
	 * @param x the position where to scroll on the X axis 
	 * @param y the position where to scroll on the Y axis 
	 */ 
	public final void smoothScrollTo(int x, int y) {
		smoothScrollBy(x - getScrollX(), y - getScrollY());
	} 
 
}