Code example for OverScroller

0
 
	private OverScroller mScroller;
 
	public Fling9Runnable( FlingRunnableView parent, int animationDuration ) {
		super( parent, animationDuration );
		mScroller = new OverScroller( ( (View) parent ).getContext(), new DecelerateInterpolator(1.0f) );
	} 
 
	@TargetApi(14) 
	@Override 
	public float getCurrVelocity() { 
		return mScroller.getCurrVelocity();
	} 
 
	@Override 
	public boolean isFinished() { 
		return mScroller.isFinished();
	} 
 
	public boolean springBack( int startX, int startY, int minX, int maxX, int minY, int maxY ) {
Connect your IDE to all the code out there  Get Codota for Java