Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Swipe gesture recognizer

$
0
0

Xamarin.Forms is very new and very exciting, but for now I see that it has few documentation and a few samples.
I'm trying to make an app with an interface similar to the MasterDetailPage one, but also having a right Flyout view, not only the left one.

I've seen that this is not possible using the current API, and my approach was this one:
1. Create a shared GestureRecognizer interface
2. In Android app and iOS in bind this interface to the UIGestureRecognizer on iOS or the OnTouch method on the android.

For iOS this is working but for Android the touch listener over the activity doesn't seem to work.

Is my approach good? Maybe there is another good method to capture touch events directly from the shared code? Or do you have any ideas why the public override bool OnTouchEvent doesn't work in an AndroidActivity ?


Viewing all articles
Browse latest Browse all 58056

Trending Articles