Hopefully someone can help.
I'm trying to attach an OnTouchListener() to a view and it's children. In native android, this would be using the setOnTouchListener() method.
The Xamarin documentation seems to suggest using delegates for c#. But this seems not to work. Can anyone help with a basic demonstration on attaching an ontouch listener to a view and its children.
Below is the code I've tried.
myView.Touch += (sender,e)=>
{
// Code to be executed
}
And
myView.Click += (sender,e)=>
{
// Code to be executed
}