Code example for Gesture

Methods: getLength

0
        } 
 
        @Override 
        public void onGestureEnded(GestureOverlayView overlay, MotionEvent event) { 
          gesture = overlay.getGesture(); 
          if (gesture.getLength() < LENGTH_THRESHOLD) { 
            overlay.clear(false); 
          } 
        } 
 
        @Override 
        public void onGestureCancelled(GestureOverlayView overlay, MotionEvent event) {} 
 
        @Override 
        public void onGesture(GestureOverlayView overlay, MotionEvent event) {} 
      }; 
 
 
 
  public DragView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);