Bug 37513 - Problem with ContextActions when caching strategy set to RecycleElement
Summary: Problem with ContextActions when caching strategy set to RecycleElement
Status: RESOLVED DUPLICATE of bug 39476
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.2
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-08 08:29 UTC by Bartosz
Modified: 2016-11-09 22:16 UTC (History)
4 users (show)

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


Attachments
Sample project (59.95 KB, application/zip)
2016-01-08 08:29 UTC, Bartosz
Details


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:
Status:
RESOLVED DUPLICATE of bug 39476

Description Bartosz 2016-01-08 08:29:34 UTC
Created attachment 14498 [details]
Sample project

I have a ListView with caching strategy set to RecycleElement, where each cell has a certain number of context actions implemented with MenuItems.
In Android, when the user long presses on a cell the actions are shown and the background color of the selected cell is changed. The problem is that if the user starts scrolling down the list while a cell is selected, after the selected cell goes out of the screen, another cell at the bottom appears with the background color changed, as if it was selected, and this happens repeatedly (if one has enough list items), and this is confusing. The issue is not present when using the RetainElement caching strategy, to this should be a problem related to the recycling of cells.
A sample project has been attached.
Comment 1 Jimmy [MSFT] 2016-08-18 16:41:46 UTC
I can still reproduce this issue on Forms 2.3.2-pre1 with the attached repro. And it actually crashes now if you keep scrolling around the list.
Comment 2 Jimmy [MSFT] 2016-08-19 16:19:29 UTC
 This report appears to be a duplicate of bug 39476. On further testing, I can't reproduce the original issue using the attached project with Forms 2.3.1.

The crash I am experiencing is a different issue.
Comment 3 Samantha Houts [MSFT] 2016-11-09 22:16:58 UTC
Confirming that this was fixed with bug 39476. The crash mentioned in Comment 2 is bug 42832. Thank you!

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