Code example for GestureDetector.OnGestureListener

Methods: onLongPress

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