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; 
	} 
 
	@Override 
	public void onShowPress(MotionEvent e) {
		if (onGestureListener != null) {
			onGestureListener.onShowPress(e);
		} 
	} 
 
	@Override 
	public boolean onSingleTapUp(MotionEvent e) {
		if (onGestureListener != null) {
Contextual code suggestions in your IDE  Get Codota for Java