Code example for GestureDetector.OnGestureListener

Methods: onDown

0
 	 * @see android.view.GestureDetector.OnGestureListener#onDown(android.view.MotionEvent) 
 	 */ 
 	@Override 
	 public boolean onDown(MotionEvent e) {
	  if (onGestureListener != null) {
	   return onGestureListener.onDown(e);
	  } 
	  return false; 
	 } 
 
	 /* (non-Javadoc) 
 	 * @see android.view.GestureDetector.OnGestureListener#onFling(android.view.MotionEvent, android.view.MotionEvent, float, float) 
 	 */ 
 	@Override 
	 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
	   float velocityY) {
	  if (onGestureListener != null) {
	   return onGestureListener.onFling(e1, e2, velocityX, velocityY);
	  } 
	  return false; 
	 }