java.lang.Object | |
↳ | android.view.GestureDetector.SimpleOnGestureListener |
A convenience class to extend when you only want to listen for a subset
of all the gestures. This implements all methods in the
GestureDetector.OnGestureListener
and GestureDetector.OnDoubleTapListener
but does
nothing and return false
for all applicable methods.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Notified when a double-tap occurs.
| |||||||||||
Notified when an event within a double-tap gesture occurs, including
the down, move, and up events.
| |||||||||||
Notified when a tap occurs with the down
MotionEvent
that triggered it. | |||||||||||
Notified of a fling event when it occurs with the initial on down
MotionEvent
and the matching up MotionEvent . | |||||||||||
Notified when a long press occurs with the initial on down
MotionEvent
that trigged it. | |||||||||||
Notified when a scroll occurs with the initial on down
MotionEvent and the
current move MotionEvent . | |||||||||||
The user has performed a down
MotionEvent and not performed
a move or up yet. | |||||||||||
Notified when a single-tap occurs.
| |||||||||||
Notified when a tap occurs with the up
MotionEvent
that triggered it. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.view.GestureDetector.OnDoubleTapListener
| |||||||||||
From interface
android.view.GestureDetector.OnGestureListener
|
Notified when a double-tap occurs.
e | The down motion event of the first tap of the double-tap. |
---|
Notified when an event within a double-tap gesture occurs, including the down, move, and up events.
e | The motion event that occurred during the double-tap gesture. |
---|
Notified when a tap occurs with the down MotionEvent
that triggered it. This will be triggered immediately for
every down event. All other events should be preceded by this.
e | The down motion event. |
---|
Notified of a fling event when it occurs with the initial on down MotionEvent
and the matching up MotionEvent
. The calculated velocity is supplied along
the x and y axis in pixels per second.
e1 | The first down motion event that started the fling. |
---|---|
e2 | The move motion event that triggered the current onFling. |
velocityX | The velocity of this fling measured in pixels per second along the x axis. |
velocityY | The velocity of this fling measured in pixels per second along the y axis. |
Notified when a long press occurs with the initial on down MotionEvent
that trigged it.
e | The initial on down motion event that started the longpress. |
---|
Notified when a scroll occurs with the initial on down MotionEvent
and the
current move MotionEvent
. The distance in x and y is also supplied for
convenience.
e1 | The first down motion event that started the scrolling. |
---|---|
e2 | The move motion event that triggered the current onScroll. |
distanceX | The distance along the X axis that has been scrolled since the last
call to onScroll. This is NOT the distance between e1
and e2 . |
distanceY | The distance along the Y axis that has been scrolled since the last
call to onScroll. This is NOT the distance between e1
and e2 . |
The user has performed a down MotionEvent
and not performed
a move or up yet. This event is commonly used to provide visual
feedback to the user to let them know that their action has been
recognized i.e. highlight an element.
e | The down motion event |
---|
Notified when a single-tap occurs.
Unlike onSingleTapUp(MotionEvent)
, this
will only be called after the detector is confident that the user's
first tap is not followed by a second tap leading to a double-tap
gesture.
e | The down motion event of the single-tap. |
---|
Notified when a tap occurs with the up MotionEvent
that triggered it.
e | The up motion event that completed the first tap |
---|