| java.lang.Object | |
| ↳ | android.support.v4.view.MotionEventCompat |
Helper for accessing features in MotionEvent introduced
after API level 4 in a backwards compatible fashion.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | ACTION_HOVER_ENTER |
Constant for getActionMasked(MotionEvent): The pointer is not down but has entered the
boundaries of a window or view.
|
|||||||||
| int | ACTION_HOVER_EXIT |
Constant for getActionMasked(MotionEvent): The pointer is not down but has exited the
boundaries of a window or view.
|
|||||||||
| int | ACTION_HOVER_MOVE |
Synonym for ACTION_HOVER_MOVE.
|
|||||||||
| int | ACTION_MASK |
Synonym for ACTION_MASK.
|
|||||||||
| int | ACTION_POINTER_DOWN |
Synonym for ACTION_POINTER_DOWN.
|
|||||||||
| int | ACTION_POINTER_INDEX_MASK |
Synonym for ACTION_POINTER_INDEX_MASK.
|
|||||||||
| int | ACTION_POINTER_INDEX_SHIFT |
Synonym for ACTION_POINTER_INDEX_SHIFT.
|
|||||||||
| int | ACTION_POINTER_UP |
Synonym for ACTION_POINTER_UP.
|
|||||||||
| int | ACTION_SCROLL |
Synonym for ACTION_SCROLL.
|
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Call
findPointerIndex(int).
| |||||||||||
Call
getAction(), returning only the pointer index
portion
| |||||||||||
Call
getAction(), returning only the ACTION_MASK
portion.
| |||||||||||
The number of pointers of data contained in this event.
| |||||||||||
Call
getPointerId(int).
| |||||||||||
Call
getX(int).
| |||||||||||
Call
getY(int).
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constant for getActionMasked(MotionEvent): The pointer is not down but has entered the
boundaries of a window or view.
This action is always delivered to the window or view under the pointer.
This action is not a touch event so it is delivered to
onGenericMotionEvent(MotionEvent) rather than
onTouchEvent(MotionEvent).
Constant for getActionMasked(MotionEvent): The pointer is not down but has exited the
boundaries of a window or view.
This action is always delivered to the window or view that was previously under the pointer.
This action is not a touch event so it is delivered to
onGenericMotionEvent(MotionEvent) rather than
onTouchEvent(MotionEvent).
Synonym for ACTION_HOVER_MOVE.
Synonym for ACTION_POINTER_DOWN.
Synonym for ACTION_POINTER_INDEX_MASK.
Synonym for ACTION_POINTER_INDEX_SHIFT.
Synonym for ACTION_POINTER_UP.
Call findPointerIndex(int).
If running on a pre-ECLAIR device,
does nothing and returns -1.
Call getAction(), returning only the pointer index
portion
Call getAction(), returning only the ACTION_MASK
portion.
The number of pointers of data contained in this event. Always >= 1.
Call getPointerId(int).
If running on a pre-ECLAIR device,
IndexOutOfBoundsException is thrown.
Call getX(int).
If running on a pre-ECLAIR device,
IndexOutOfBoundsException is thrown.
Call getY(int).
If running on a pre-ECLAIR device,
IndexOutOfBoundsException is thrown.