Code example for OverScroller

	private OverScroller mScroller;
	public Fling9Runnable( FlingRunnableView parent, int animationDuration ) {
		super( parent, animationDuration );
		mScroller = new OverScroller( ( (View) parent ).getContext(), new DecelerateInterpolator(1.0f) );
	public float getCurrVelocity() { 
		return mScroller.getCurrVelocity();
	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