I need to do something when the user clicks the ImageButton
I've tried to create a static class that implements both OnClickListener
and OnTouchListener
static class ClickListenerForScrolling implements OnClickListener, OnTouchListener
that has the following methods:
@Override
public void onClick(View v)
and
@Override
public boolean onTouch(View arg0, MotionEvent arg1)
The whole idea behind this is to change the image source of the ImageButton
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?