public class ListViewGestureListener extends GestureDetector.SimpleOnGestureListener
RadListView
.Constructor and Description |
---|
ListViewGestureListener(Context context)
Creates a new instance of ListViewGestureListener with the provided context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
onActionUpOrCancel(boolean isCanceled)
Called when a previous gesture ends on up or cancel.
|
boolean |
onFling(MotionEvent motionEvent,
MotionEvent motionEvent2,
float v,
float v2) |
boolean |
onInterceptTouchEvent(RadListView owner,
MotionEvent motionEvent) |
void |
onLongPress(MotionEvent motionEvent) |
void |
onLongPressDrag(float startX,
float startY,
float currentX,
float currentY)
Called when the drag gesture is detected after a long press.
|
boolean |
onLongPressDragEnded(boolean isCanceled)
Called when a current gesture combination of long press and drag ends on up or cancel.
|
boolean |
onShortPressDrag(float startX,
float startY,
float currentX,
float currentY)
Called when the drag gesture is detected without a long press before that.
|
boolean |
onSingleTapUp(MotionEvent motionEvent) |
boolean |
onTapUp(MotionEvent motionEvent)
A convenience method called when
onSingleTapUp(android.view.MotionEvent) is detected. |
boolean |
onTouchEvent(RadListView sender,
MotionEvent e)
Called when a touch event occurs on the parent list view instance.
|
onContextClick, onDoubleTap, onDoubleTapEvent, onDown, onScroll, onShowPress, onSingleTapConfirmed
public ListViewGestureListener(Context context)
context
- context to be used.public boolean onTouchEvent(RadListView sender, MotionEvent e)
sender
- the parent list view instance.e
- the motion event that occurred.public boolean onInterceptTouchEvent(RadListView owner, MotionEvent motionEvent)
public boolean onTapUp(MotionEvent motionEvent)
onSingleTapUp(android.view.MotionEvent)
is detected.motionEvent
- the motion event that occurred.public boolean onShortPressDrag(float startX, float startY, float currentX, float currentY)
startX
- the x coordinate where the gesture startedstartY
- the y coordinate where the gesture startedcurrentX
- the x coordinate where the gesture occurring nowcurrentY
- the y coordinate where the gesture occurring nowpublic boolean onActionUpOrCancel(boolean isCanceled)
isCanceled
- whether the gesture was cancelledpublic void onLongPressDrag(float startX, float startY, float currentX, float currentY)
startX
- the x coordinate where the gesture startedstartY
- the y coordinate where the gesture startedcurrentX
- the x coordinate where the gesture occurring nowcurrentY
- the y coordinate where the gesture occurring nowpublic boolean onLongPressDragEnded(boolean isCanceled)
isCanceled
- whether the gesture was cancelledpublic boolean onSingleTapUp(MotionEvent motionEvent)
onSingleTapUp
in interface GestureDetector.OnGestureListener
onSingleTapUp
in class GestureDetector.SimpleOnGestureListener
public void onLongPress(MotionEvent motionEvent)
onLongPress
in interface GestureDetector.OnGestureListener
onLongPress
in class GestureDetector.SimpleOnGestureListener
public boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float v, float v2)
onFling
in interface GestureDetector.OnGestureListener
onFling
in class GestureDetector.SimpleOnGestureListener