Code example for Scroller

Methods: abortAnimationisFinished

0
		final float x = event.getX();
		final float y = event.getY();
		switch (action) {
		case MotionEvent.ACTION_DOWN:
			//Log.e(TAG, "event down!"); 
			if (!mScroller.isFinished()) {
				mScroller.abortAnimation();
			} 
			mLastMotionX = x;
			 
			//---------------New Code---------------------- 
			mLastMotionY = y;
			//--------------------------------------------- 
			 
			break; 
		case MotionEvent.ACTION_MOVE:
			int deltaX = (int) (mLastMotionX - x);
			 
			//---------------New Code---------------------- 
			int deltaY = (int) (mLastMotionY - y);