Code example for Scroller

Methods: forceFinished

0
	private GestureDetector.SimpleOnGestureListener mOnGesture = new GestureDetector.SimpleOnGestureListener() {
 
		@Override 
		public boolean onDown(MotionEvent e) { 
			mIsFingerDown = true; 
			mScroller.forceFinished(true); 
			return true; 
		} 
 
		@Override 
		public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { 
 
			final int maxScrollDistance = getMeasuredHeight()*1; 
			mLastY = 0; 
			mScroller.fling(0, mdY, 0, Math.round(velocityY), 0, 0, -maxScrollDistance, maxScrollDistance); 
			requestLayout(); 
			 
			 
			return true; 
		}