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();
	} 
 
	@Override 
Contextual code suggestions in your IDE  Get Codota for Java