title: Receiving onTouch and onClick events with Android
body: <p>I have a view that need to process onTouch gestures <em>and</em> onClick events. What is the proper way to achieve this? </p>
  
  <p>I have an <code>onTouchListener</code> and an <code>onClickListener</code> set on the view. Whenever I do touch the view, first the <code>onTouch</code> event is triggered and later the <code>onClick</code>. However, from the <code>onTouch</code> event handler I have to return either <code>true</code> or <code>false</code>. Returning <code>true</code> means that the event is being consumed, so the android event system will not propagate the event any further. </p>
  
  <p>Therefore, an <code>onClick</code> event is never generated, atleast my <code>onClick</code> listener is never triggered when I return <code>true</code> in my <code>onTouch</code> event handler. On the other hand, returning <code>false</code> there is not an option, since this prevents the <code>onTouch</code> listener from receiving any further events that are necessary in order to recognize a gesture. What's the usual way of solving this?</p>