How to differentiate between sliding and clicking in android?
<p>In pure Java there is <code>MouseInputListener</code> which I can use to work with those 2 events.</p>

<p>How do I do it with Android?</p>

<p>If I implement both events then only one is fired (<code>onClickListener</code>) and not the other.</p>

<p><strong>Updated:</strong></p>

<p>The question is not about detecting the finger movement. </p>

<p>I have a View (<code>ImageView</code> for example). I need to detect the click on this view which is <code>onClickListener()</code> and finger movement on this view (i.e. press, move then release the finger). </p>

<p>The problem here is that only <code>onClickListener()</code> is called and <code>MotionEvent</code> handler is not caught. </p>

<p>I need to be able to differentiate those 2 events as the main event should be finger movement and <code>onClickListener()</code> should just say "Don't click this view. Spin this view." </p>

<p>Hopefully this is more clear. </p>
