public static interface TouchInput.PanResponder
| Modifier and Type | Method and Description |
|---|---|
boolean |
onFling(float posX,
float posY,
float velocityX,
float velocityY)
Called when a dragged touch point with non-zero velocity is lifted
|
boolean |
onPan(float startX,
float startY,
float endX,
float endY)
Called repeatedly while a touch point is dragged
|
boolean onPan(float startX,
float startY,
float endX,
float endY)
startX - The starting x screen coordinate for an interval of motionstartY - The starting y screen coordinate for an interval of motionendX - The ending x screen coordinate for an interval of motionendY - The ending y screen coordinate for an interval of motionboolean onFling(float posX,
float posY,
float velocityX,
float velocityY)
posX - The x screen coordinate where the touch was liftedposY - The y screen coordinate where the touch was liftedvelocityX - The x velocity of the gesture in screen coordinates per secondvelocityY - The y velocity of the gesture in screen coordinates per second