Code example for GestureDetector.OnGestureListener

Methods: onFling

0
 	 */ 
 	@Override 
	 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
	   float velocityY) {
	  if (onGestureListener != null) {
	   return onGestureListener.onFling(e1, e2, velocityX, velocityY);
	  } 
	  return false; 
	 } 
 
	 /* (non-Javadoc) 
 	 * @see android.view.GestureDetector.OnGestureListener#onLongPress(android.view.MotionEvent) 
 	 */ 
 	@Override 
	 public void onLongPress(MotionEvent e) {
	  if (onGestureListener != null) {
	   onGestureListener.onLongPress(e);
	  } 
	 } 
 
Experience pair programming with AI  Get Codota for Java