Example usage for android.gesture GestureOverlayView setEnabled

List of usage examples for android.gesture GestureOverlayView setEnabled

Introduction

In this page you can find the example usage for android.gesture GestureOverlayView setEnabled.

Prototype

@RemotableViewMethod
public void setEnabled(boolean enabled) 

Source Link

Document

Set the enabled state of this view.

Usage

From source file:org.liberty.android.fantastischmemo.ui.QACardActivity.java

private void loadGestures() {
    gestureLibrary = GestureLibraries.fromRawResource(this, R.raw.gestures);
    if (!gestureLibrary.load()) {
        Log.e(TAG, "Gestures can not be load");
    }//from   w ww. ja v a2 s  . co  m

    GestureOverlayView gestureOverlay = (GestureOverlayView) findViewById(R.id.gesture_overlay);
    gestureOverlay.addOnGesturePerformedListener(onGesturePerformedListener);

    // Set if gestures are enabled if set on preference
    gestureOverlay.setEnabled(option.getGestureEnabled());
}