public final class Swiper
extends android.view.GestureDetector.SimpleOnGestureListener
| Constructor and Description |
|---|
Swiper(int variableToChange,
int limit,
Swipeable s) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onDown(android.view.MotionEvent e) |
boolean |
onFling(android.view.MotionEvent e1,
android.view.MotionEvent e2,
float velocityX,
float velocityY) |
public Swiper(int variableToChange,
int limit,
Swipeable s)
variableToChange - the integer variable to change on detection of swipe actionlimit - the maximum value of that integers - the swipe-enabled Activity that implements Swipeablepublic boolean onFling(android.view.MotionEvent e1,
android.view.MotionEvent e2,
float velocityX,
float velocityY)
onFling in interface android.view.GestureDetector.OnGestureListeneronFling in class android.view.GestureDetector.SimpleOnGestureListenerpublic boolean onDown(android.view.MotionEvent e)
onDown in interface android.view.GestureDetector.OnGestureListeneronDown in class android.view.GestureDetector.SimpleOnGestureListener