Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Problem with selected cells when using RecycleElement caching strategy on ListView

$
0
0

Hi guys,

I have a ListViewwith 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.

Any ideas about to solve this issue?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>