Code example for OverScroller

Methods: fling

0
		return mScroller.springBack( startX, startY, minX, maxX, minY, maxY );
	} 
 
	@Override 
	protected void _startUsingVelocity( int initialX, int velocity ) {
		mScroller.fling( initialX, 0, velocity, 0, mParent.getMinX(), mParent.getMaxX(), 0, Integer.MAX_VALUE, 10, 0 );
	} 
 
	@Override 
	protected void _startUsingDistance( int initialX, int distance ) {
		mScroller.startScroll( initialX, 0, distance, 0, mAnimationDuration );
	} 
 
	@Override 
	protected boolean computeScrollOffset() { 
		return mScroller.computeScrollOffset();
	} 
 
	@Override 
	protected int getCurrX() { 
		return mScroller.getCurrX();