class SwipeLayout.SwipeDetector
extends android.view.GestureDetector.SimpleOnGestureListener
Constructor and Description |
---|
SwipeDetector() |
Modifier and Type | Method and Description |
---|---|
boolean |
onDoubleTap(android.view.MotionEvent e) |
boolean |
onDown(android.view.MotionEvent e) |
void |
onLongPress(android.view.MotionEvent e) |
boolean |
onSingleTapConfirmed(android.view.MotionEvent e) |
boolean |
onSingleTapUp(android.view.MotionEvent e)
Simulate the touch event lifecycle.
|
public boolean onDown(android.view.MotionEvent e)
onDown
in interface android.view.GestureDetector.OnGestureListener
onDown
in class android.view.GestureDetector.SimpleOnGestureListener
public boolean onSingleTapUp(android.view.MotionEvent e)
AdapterView
(ListView
, GridView
etc.) It will manually call
AdapterView
.performItemClick, performItemLongClick.onSingleTapUp
in interface android.view.GestureDetector.OnGestureListener
onSingleTapUp
in class android.view.GestureDetector.SimpleOnGestureListener
public boolean onSingleTapConfirmed(android.view.MotionEvent e)
onSingleTapConfirmed
in interface android.view.GestureDetector.OnDoubleTapListener
onSingleTapConfirmed
in class android.view.GestureDetector.SimpleOnGestureListener
public void onLongPress(android.view.MotionEvent e)
onLongPress
in interface android.view.GestureDetector.OnGestureListener
onLongPress
in class android.view.GestureDetector.SimpleOnGestureListener
public boolean onDoubleTap(android.view.MotionEvent e)
onDoubleTap
in interface android.view.GestureDetector.OnDoubleTapListener
onDoubleTap
in class android.view.GestureDetector.SimpleOnGestureListener