Gesture getBoundingBox - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Gesture getBoundingBox method.

This code example shows how to use the following methods:getBoundingBox, getLength
        } 
 
        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) {
        } 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:getBoundingBox
		} 
 
		public void onGestureEnded(GestureOverlayView overlay, MotionEvent event) {
			Gesture gesture = overlay.getGesture();
			if (event.getAction() == MotionEvent.ACTION_UP) {
				String strName = findGesture(gesture);
				if (mHandler != null && strName != null) {
					mHandler.processGesture(strName, gesture.getBoundingBox());
				} 
			} 
			disableGesture(); 
		} 
 
		public void onGestureCancelled(GestureOverlayView overlay,
				MotionEvent event) {
		} 
 
		public void onGesture(GestureOverlayView overlay, MotionEvent event) {
		} 
	} 
4
CodeRank
getBoundingBox Method Overview
See Code Examples for other Android Gesture Methods: