Code example for VelocityTracker

Methods: clear

0
			// TODO: Make this decision more intelligent. 
			final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
			mLastMotionX = ev.getX(newPointerIndex);
			mActivePointerId = ev.getPointerId(newPointerIndex);
			if (mVelocityTracker != null) {
				mVelocityTracker.clear();
			} 
		} 
	} 
 
	/** 
	 * Fling the scroll view 
	 *  
	 * @param velocityX 
	 *            The initial velocity in the X direction. Positive numbers mean 
	 *            that the finger/cursor is moving down the screen, which means 
	 *            we want to scroll towards the left. 
	 */ 
	public void flingX(int velocityX) {
		Log.d("CTC", "flingX v:" + velocityX);