title: How to combine OnClickListener and OnTouchListener for an ImageButton
body: <p>I need to do something when the user clicks 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 clicks this button. Can anybody give me a hint on how to do this? </p>