How to combine OnClickListener and OnTouchListener for an ImageButton
<p>I need to do something when the user presses the <code>imageButton</code> I've tried to create a static class that implements <strong>both</strong> <code>OnClickListener</code> and <code>OnTouchListener</code></p>

<pre><code>static class ClickListenerForScrolling implements OnClickListener, OnTouchListener
</code></pre>

<p>That has the following methods:</p>

<pre><code>  @Override
    public void onClick(View v)
</code></pre>

<p>and </p>

<pre><code>@Override
    public boolean onTouch(View arg0, MotionEvent arg1)
</code></pre>

<p>The whole idea behind this is to change the image source of the <code>ImageButton</code> when the user touches it, and perform a task when the user presses this button. Can anybody give me a hint on how to do so? </p>
