Code example for Gesture

Methods: getBoundingBoxgetLength

0
        } 
 
        public void onGestureEnded(GestureOverlayView overlay, MotionEvent event) {
            mGesture = overlay.getGesture();
            //Ignore short strokes and horizontal swipes (for compatibility with playback controls) 
            if (mGesture.getLength() < THRESHOLD ||
                    mGesture.getBoundingBox().height() < THRESHOLD) {
                overlay.clear(false);
            } else { 
                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