Code example for GestureDetector.OnGestureListener

Methods: onScroll

0
 	 */ 
 	@Override 
	 public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
	   float distanceY) {
	  if (onGestureListener != null) {
	   onGestureListener.onScroll(e1, e2, distanceX, distanceY);
	  } 
	  return false; 
	 } 
 
	 /* (non-Javadoc) 
 	 * @see android.view.GestureDetector.OnGestureListener#onShowPress(android.view.MotionEvent) 
 	 */ 
 	@Override 
	 public void onShowPress(MotionEvent e) {
	  if (onGestureListener != null) {
	   onGestureListener.onShowPress(e);
	  } 
	 } 
 
	 /* (non-Javadoc)