diff options
author | Andrew Dolgov <[email protected]> | 2019-02-03 23:53:57 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-02-03 23:53:57 +0300 |
commit | 12f64363c82274587ebb07774de1a872f54ca3ae (patch) | |
tree | 1ceefcf0d1da0e4e06310cdfc4af8d9e00b55b34 /org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnSingleFlingListener.java | |
parent | 31616c82eb5a5548127ddd965a39c6d5dbeb3f69 (diff) |
android support libraries -> androidx
use photoview instead of imageviewtouch (included because of TOP_CROP missing)
remove obsolete/unused code
Diffstat (limited to 'org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnSingleFlingListener.java')
-rw-r--r-- | org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnSingleFlingListener.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnSingleFlingListener.java b/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnSingleFlingListener.java new file mode 100644 index 0000000..f5dab92 --- /dev/null +++ b/org.fox.ttcomics/src/main/java/com/github/chrisbanes/photoview/OnSingleFlingListener.java @@ -0,0 +1,21 @@ +package com.github.chrisbanes.photoview; + +import android.view.MotionEvent; + +/** + * A callback to be invoked when the ImageView is flung with a single + * touch + */ +public interface OnSingleFlingListener { + + /** + * A callback to receive where the user flings on a ImageView. You will receive a callback if + * the user flings anywhere on the view. + * + * @param e1 MotionEvent the user first touch. + * @param e2 MotionEvent the user last touch. + * @param velocityX distance of user's horizontal fling. + * @param velocityY distance of user's vertical fling. + */ + boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); +} |