Bug 59129 - ViewCell.ContextAction interferes with ListView.ItemSelected event
Summary: ViewCell.ContextAction interferes with ListView.ItemSelected event
Status: RESOLVED DUPLICATE of bug 58833
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-08-30 22:48 UTC by Pete Schmitz
Modified: 2017-08-31 14:31 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

reproduction project (143.79 KB, application/x-zip-compressed)
2017-08-30 22:48 UTC, Pete Schmitz

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 Pete Schmitz 2017-08-30 22:48:37 UTC
Created attachment 24488 [details]
reproduction project

Issue: After updating to 2.4.0-pre2 our Android app is suffering from the inability to properly select items in an listview (ListView.ItemSelected event does not invoke on a simple tap gesture). We've narrowed down the problem to listviews that include cells with a ContextAction.

In the attached reproduction projection:

- Tap on an item in the listview. If the label (with a grey background) inside a cell is tapped, the ItemSelected event (App.cs:LN157) does not fire off. However, tapping the background area of the cell will invoke the event as expected.

- Turning off 'FastRenderers_Experimental' appears to have no affect. (MainActivity.cs:LN18)

- Removing the context action (App.cs:LN75) will allow the cell to always invoke the ItemSelected event as expected.
Comment 1 Jimmy [MSFT] 2017-08-31 14:31:03 UTC

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