List of usage examples for android.gesture GestureOverlayView setEnabled
@RemotableViewMethod public void setEnabled(boolean enabled)
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()); }