Code example for GestureDetector.OnGestureListener

Methods: onDown

0
 
    @Override 
    public boolean onDown(MotionEvent e)
    { 
        if ( listener != null ) {
            return listener.onDown(e);
             
        } 
         
        return false; 
         
    } 
 
    @Override 
    public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
    { 
        if ( listener != null ) {
            return listener.onFling(e1, e2, velocityX, velocityY);
             
        } 
Experience pair programming with AI  Get Codota for Java