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);
        } 
    } 
 
    @SuppressWarnings({"UnusedDeclaration"}) 
    public void addGesture(View v) {
        if (mGesture != null) {
            final TextView input = (TextView) findViewById(R.id.gesture_name);
            final CharSequence name = input.getText();
            if (name.length() == 0) {
                input.setError(getString(R.string.error_missing_name));
                return;