Problem with touch gesture recognizer in IOS

CaioshinCaioshin ITMember ✭✭

Hello,
I've a complex layout that is making me crazy because I'm trying to make working a tap gesture recognizer in my ios project that works fine in Android project but not in Apple one.

My layout is composed of different levels of grids, nested one inside others.

I tried with a lot of temptatives discovering that until the second level of grid I can use a tapgesture and my application receive a notification, while if I try to get a user input inside the second grid it doesn't work.

I tried with a tapgesture recognizer and with a simple button, but all the elements I have inside the second grid are not fired.
I also tried to use the InputTransparent property without success.
I also tried to create a custom rendered for the Grid where to set UserInteractionEnabled or to prevent to capture the input like explained in this thread:
https://forums.xamarin.com/discussion/55376/pass-click-tap-event-through-levels-of-relativelayout
but I wasn't able to find the right way to do it.

Can somebody point me in the right direction to have my tapgestures recognizers working in ios like they already do in Android?

Thank you

Answers

  • JoydeLannaJoydeLanna USMember ✭✭

    I have the same problem....Did you solve that?

  • CharllieACharllieA USMember ✭✭

    I got a similar problem on a Label with a gesture, working on Android but not on iOS. It was because I got a Grid with 3 columns, 1 Label in Column 0 and another one in Column 2, and a clickable control in Column 1 with a ColumnSpan=3, which was overlaping the left label (the right one was working).

    The solution is to place the middle control first in the XAML, and the 2 labels after, in order to give Labels a superior Z-Index.

  • PhenekPhenek Member ✭✭

    Yeah Guys I'm on it too!

    Any news?

  • luismatoslunaluismatosluna USMember ✭✭

    If someone is going through the same problem try to use InputTransparent = "True" for the controls that are overlapping the control you want to get fire.

Sign In or Register to comment.