Interface OnSingleFlingListener

  • All Implemented Interfaces:

    
    public interface OnSingleFlingListener
    
                        

    A callback to be invoked when the ImageView is flung with a single touch

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) A callback to receive where the user flings on a ImageView.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.