Code example for GestureDetector.SimpleOnGestureListener

Methods: onSingleTapUp

0
 
	public boolean onTouchEvent(MotionEvent event)
	{ 
		if (event.getAction() == MotionEvent.ACTION_UP)
		{ 
			gestureListener.onSingleTapUp(event);
		} 
 
		return (true); 
	} 
 
	public void addTapListener(TapListener l)
	{ 
		listeners.add(l);
	} 
 
	public void removeTapListener(TapListener l)
	{ 
		listeners.remove(l);
	}