Code example for GestureDetector.OnGestureListener

Methods: onLongPress

0
 
    @Override 
    public void onLongPress(MotionEvent e)
    { 
        if ( listener != null ) {
            listener.onLongPress(e);
             
        } 
         
    } 
 
    @Override 
    public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
    { 
        if ( listener != null ) {
            return listener.onScroll(e1, e2, distanceX, distanceY);
             
        } 
         
        return false; 
Experience pair programming with AI  Get Codota for Java