Code example for Gesture

Methods: getLength

0
		public void onGesture(GestureOverlayView overlay, MotionEvent event) {
		} 
	 
		public void onGestureEnded(GestureOverlayView overlay, MotionEvent event) {
			mGesture = overlay.getGesture();
			if (mGesture.getLength() < LENGTH_THRESHOLD) {
				overlay.clear(false);
			} 
			mDoneButton.setEnabled(true);
		} 
	 
		public void onGestureCancelled(GestureOverlayView overlay, MotionEvent event) {
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE