Class WeatherDetailsActivity.SwipeGestureDetector
java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherDetailsActivity.SwipeGestureDetector
- Enclosing class:
WeatherDetailsActivity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonDownSwipe(View view, MotionEvent motionEvent) booleanonLeftSwipe(View view, MotionEvent motionEvent) booleanonRightSwipe(View view, MotionEvent motionEvent) booleanonTouch(View view, MotionEvent motionEvent) booleanonUpSwipe(View view, MotionEvent motionEvent) voidsetThreshold(int i)
-
Constructor Details
-
SwipeGestureDetector
public SwipeGestureDetector()
-
-
Method Details
-
setThreshold
public void setThreshold(int i) -
onLeftSwipe
public boolean onLeftSwipe(View view, MotionEvent motionEvent) -
onRightSwipe
public boolean onRightSwipe(View view, MotionEvent motionEvent) -
onUpSwipe
public boolean onUpSwipe(View view, MotionEvent motionEvent) -
onDownSwipe
public boolean onDownSwipe(View view, MotionEvent motionEvent) -
onTouch
public boolean onTouch(View view, MotionEvent motionEvent)
-