-
public interface OnSingleFlingListenerA callback to be invoked when the ImageView is flung with a single touch
-
-
Method Summary
Modifier and Type Method Description abstract BooleanonFling(MotionEvent e1, MotionEvent e2, Float velocityX, Float velocityY)A callback to receive where the user flings on a ImageView. -
-
Method Detail
-
onFling
abstract Boolean onFling(MotionEvent e1, MotionEvent e2, Float velocityX, Float velocityY)
A callback to receive where the user flings on a ImageView. You will receive a callback if the user flings anywhere on the view.
- Parameters:
e1- MotionEvent the user first touch.e2- MotionEvent the user last touch.velocityX- distance of user's horizontal fling.velocityY- distance of user's vertical fling.
-
-
-
-