Example usage for Java android.view GestureDetector fields, constructors, methods, implement or subclass
The text is from its open source code.
GestureDetector(OnGestureListener listener, Handler handler) Creates a GestureDetector with the supplied listener. | |
GestureDetector(Context context, OnGestureListener listener) Creates a GestureDetector with the supplied listener. | |
GestureDetector(OnGestureListener listener) Creates a GestureDetector with the supplied listener. |
boolean | onTouchEvent(MotionEvent ev) Analyzes the given motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied. |
void | setIsLongpressEnabled(boolean isLongpressEnabled) Set whether longpress is enabled, if this is enabled when a user presses and holds down you get a longpress event and nothing further. |
void | setOnDoubleTapListener(OnDoubleTapListener onDoubleTapListener) Sets the listener which will be called for double-tap and related gestures. |