In our app we have some Grids and StackLayouts with labels and icons that as a whole act like a button. We made this with a single TapGestureRecognizer on those Grids/StackLayouts.
The problem now is that with the latest Forms (188.8.131.52-pre2) on Android the TapGestureRecognizer is not called most of the time. About 3 out of 4 taps fail. It seems that the labels in those Grids/StackLayouts eat the tap events.
Android only. It doesn't happen on iOS.
(As a workaround I will put TapGestureRecognizers on all individual components; that seems to work)
Created attachment 21922 [details]
I created a sample project and I'm seeing the issue described. In the sample project, I have a Grid and StackLayout each with a TapGestureRecognizer added.
This appears to be a regression introduced in 2.3.5, possibly related to https://github.com/xamarin/Xamarin.Forms/pull/842
### Steps to reproduce
1. Run the attached Android project
2. Tap on the red Grid
3. Tap on the Label in the blue StackLayout
### Expected Results
The debug output will indicate the TapGesture was activated.
#### Actual Results
The TapGesture is activated. In the red Grid, the Label is swallowing the tap regardless of where on the Grid you tap.
In the blue StackLayout, the event is not bubbled up to the StackLayout if the tap occurs on the Label. So tapping the area outside the Label will still work.
You can set the InputTransparent on the Label to 'true'.
### Regression Test
Should be fixed on 2.3.5-pre3
*** Bug 54492 has been marked as a duplicate of this bug. ***
Verified this issue on the latest xamarin forms version 184.108.40.206-pre5
Issue is fixed now.Verified on
=== Visual Studio Community 2017 for Mac (Preview) ===
Version 7.1 Preview (7.1 build 1258)
Installation UUID: 473a8fdd-3836-4e5e-a5c3-b537689e827f
Mono 220.127.116.11 (2017-04/478c04a) (64-bit)
=== Xamarin.iOS ===
Version: 10.12.0.12 (Visual Studio Community)
=== Xamarin.Android ===
Version: 18.104.22.168 (Visual Studio Community)
=== Xamarin.Mac ===
Version: 22.214.171.124 (Visual Studio Community)
Xamarin forms version 126.96.36.199-pre5