http://developer.android.com/reference/android/view/View.OnTouchListener.html[
^]
The
OnTouchListener
has a method
onTouch(args)
that needs the Argument
MotionEvent
.
In the
MotionEvent[
^] you can find what triggered the event.
Please check first if any default behavior is already happening. That would save you lots of time.
Please also check the Development settings on your Android device, there is a setting that let's you identify better the touch event (plotting out coordinates and stuff).
EDIT: Of course please use the previous mentioned GestureListener for detecting the Gesture in the end.