Bug 27903 - TapGestureRecognizer does not work in nested StackLayouts on Android only
Summary: TapGestureRecognizer does not work in nested StackLayouts on Android only
Status: RESOLVED DUPLICATE of bug 25943
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.2
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-03-11 14:07 UTC by John Miller [MSFT]
Modified: 2015-06-15 08:22 UTC (History)
8 users (show)

Tags: android functional stacklayout AC
Is this bug a regression?: ---
Last known good build:

Test Case (238.73 KB, application/zip)
2015-03-11 14:07 UTC, John Miller [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description John Miller [MSFT] 2015-03-11 14:07:09 UTC
Created attachment 10274 [details]
Test Case


   The attached project demonstrates an issue with TapGestureRecognizers that do not fire the tapped event when nested in a StackLayout of a ContentView.

**Steps to Reproduce:**

   1. Run the attached sample on an Android Emulator (tested on API 19)
   2. Touch the blue area.

**Actual Results:**

   The tapped event is not fired. 

**Expected Results:**

   There should be a console message indicating that the tapped event fired.

**Build Date & Platform:**

   XF 1.4.0

**Additional Information:**

   Touch the Fuscia area and the tapped event will fire. 
   Run the app on iOS and both areas will produce the tapped event as expected.
Comment 1 Parmendra Kumar 2015-03-13 12:02:44 UTC
I have checked this issue with mentioned steps in Bug description and I am also getting same behavior as mentioned in bug description.

Screencast: http://www.screencast.com/t/ClO2X2tME

ApplicationOutput: https://gist.github.com/Parmendrak/58fe24f275c8c3550b14

Environment info:

Xamarin.Forms Version: and

=== Xamarin Studio ===

Version 5.8 (build 463)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
	Mono 3.12.0 ((detached/62a9629)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000083

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 7e1f69e
Build date: 2015-03-12 15:35:49-0400

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 508000463
Git revision: 0d7bda0c4d692947c71212ef66c3b78434a3db9c
Build date: 2015-03-12 15:17:04-04
Xamarin addins: eea4775e7186e87242800751964b19a8d768276a

=== Operating System ===

Mac OS X 10.9.4
Darwin ShrutiMac.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 5 rjcollingham 2015-05-28 07:34:53 UTC
Duplicate of https://bugzilla.xamarin.com/show_bug.cgi?id=25943
Comment 6 Stephane Delcroix 2015-06-15 08:22:19 UTC

*** This bug has been marked as a duplicate of bug 25943 ***