How to create a view with detecting ability for singleTap,doubleTap,Touch and Pinch events?

Hello
I have a class derived from View class in C#/Xamarin Studio which overridden OnTouchEvent in it.I can handle Pinch and Touch event in this override method but I could not find a brief and complete discussion on how can a view detect double/single tap.Even my view class implements IOnDoubleTapListener but when I put break point in any of methods of this interface ,control doesn't get trapped in anyone.A sample code or a guide line that can help me is highly appreciated.

public class myView : View , GestureDetector.IOnDoubleTapListener
{
........................
public bool OnDoubleTap(MotionEvent e)
{
//My break point

return true;
}
public bool OnDoubleTapEvent(MotionEvent e)
{
//My break point

return true;
}

public bool OnSingleTapConfirmed(MotionEvent e)
{
//My break point

return true;
}

...........................
}

Sign In or Register to comment.