Code example for OverScroller

Methods: isFinishedspringBack

0
		setMeasuredDimension(measureWidth(widthMeasureSpec), measureHeight(heightMeasureSpec));
	} 
 
	@Override 
	protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
		if (mScroller.isFinished()) {
			super.scrollTo(scrollX, scrollY);
		} else { 
			setScrollX(scrollX);
			if (clampedX) {
				mScroller.springBack(scrollX, 0, 0, mScrollRange, 0, 0);
			} 
		} 
	} 
 
	/** 
	 * Flings the view horizontally with the specified velocity 
	 *  
	 * @param velocity int pixels per second along X axis 
	 */ 
Contextual code suggestions in your IDE  Get Codota for Java