java.lang.Object | ||
↳ | com.neomades.gesture.Gesture | |
↳ | com.neomades.gesture.LongPress |
Represents a long press gesture. A long press occurs when a finger is kept
pressed some time on the screen. This event can be obtained by using
onLongPressGesture(LongPress, com.neomades.ui.View)
.
To track for long press event on a View
use a
GestureDetector
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LongPress() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getX()
Returns the current x position of the pointer in pixel.
| ||||||||||
int |
getY()
Returns the current y position of the pointer in pixel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the current x position of the pointer in pixel. It is the position
relatively to the top left corner of the View
where the
GestureDetector
is attached.
Returns the current y position of the pointer in pixel. It is the position
relatively to the top left corner of the View
where the
GestureDetector
is attached.