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 = "~当前手势~";
//            if (name.length() == 0) { 
////                input.setError("错误"); 
//                return;