You can use OnClickEvent or onTouchEvent to do this & lt; 10 API
I use the following code to represent:
public boolean onTouch(View view, MotionEvent event) { view.bringToFront(); switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: Log.i(TAG,"Action Down"); break; case MotionEvent.ACTION_MOVE: Log.i(TAG,"Action Move"); break; case MotionEvent.ACTION_UP: Log.i(TAG,"Action Up"); break; } return true; }
Follow also this example (there is also a basket) :) I hope this helps you.
source share