Code example for GestureOverlayView

Methods: setGesture

0
        if (mGesture != null) {
            final GestureOverlayView overlay =
                    (GestureOverlayView) findViewById(R.id.gestures_overlay);
            overlay.post(new Runnable() {
                public void run() { 
                    overlay.setGesture(mGesture);
                } 
            }); 
 
            mDoneButton.setEnabled(true);
        } 
    } 
 
 
    public void addGesture(View v) {
        if (mGesture != null) {
            if (mUri == null) {
                Toast.makeText(this, R.string.gestures_error_missing_shortcut, Toast.LENGTH_SHORT).show();
                return; 
            }