Code example for GestureDetector.OnGestureListener

Methods: onFling

0
 
    @Override 
    public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
    { 
        if ( listener != null ) {
            return listener.onFling(e1, e2, velocityX, velocityY);
             
        } 
         
        return false; 
    } 
 
    @Override 
    public void onLongPress(MotionEvent e)
    { 
        if ( listener != null ) {
            listener.onLongPress(e);
             
        } 
         
Stop searching for code, let great code find you!  Add Codota to your java IDE