Code example for GestureDetector.SimpleOnGestureListener

Methods: onSingleTapUp

0
		super(context, attrs);
	} 
	 
	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);
	} 
	 
	private GestureDetector.SimpleOnGestureListener gestureListener=
		new GestureDetector.SimpleOnGestureListener() {