Bug 39476 - [Forms] Selecting item in ListView and scrolling with RecycleElement results in more items selected.
Summary: [Forms] Selecting item in ListView and scrolling with RecycleElement results ...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.1.0
Hardware: Macintosh Mac OS
: Normal major
Target Milestone: ---
Assignee: Bugzilla
: 37513 ()
Depends on:
Reported: 2016-03-09 09:15 UTC by Al Clark [MSFT]
Modified: 2016-11-09 22:16 UTC (History)
11 users (show)

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

Sample App (36.67 KB, application/zip)
2016-03-09 09:18 UTC, Al Clark [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 Al Clark [MSFT] 2016-03-09 09:15:35 UTC
--- Overview ---

In a ListView the RecycleElement doesn't appear to be behaving correctly.  Selecting an item and scrolling back and forth results in more items being selected / original item not selected, etc.

--- Steps to Reproduce ---

1. Run attached sample.
2. Long-press an item.
3. Scroll back and forth

--- Expected Behaviour ---

Item should remain selected.  Other items should remain unselected.

--- Actual Behaviour ---

Additional items are selected.  Original item can become unselected.

--- Additional Information ---

Sample includes Forms  However, I have tested with latest with same results with X.Android (latest Alpha)

Customer's version information:

=== Xamarin Studio ===

Version 5.10.2 (build 56)
Installation UUID: e2114375-1617-4c34-bbe0-6cb92f984f99
Mono 4.2.2 (explicit/996df3c)
GTK+ 2.24.23 (Raleigh theme)

Package version: 402020030

=== Xamarin.Profiler ===

Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/johan/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
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)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)

SDK Tools Version: 24.3.4
SDK Platform Tools Version: 23.0.0
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.5.6
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.2.1 (9548.1)
Build 7C1002

=== Xamarin.Mac ===

Version: (Starter Edition)

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 962a050
Branch: master
Build date: 2016-01-29 16:59:11-0500

=== Build Information ===

Release ID: 510020056
Git revision: bb74ff467c62ded42b7b7ac7fdd2edc60f8647b0
Build date: 2016-01-26 16:24:41-05
Xamarin addins: 8b797d7ba24d5abab226c2cf9fda77f666263f1b
Build lane: monodevelop-lion-cycle6-c6sr1

=== Operating System ===

Mac OS X 10.10.5
Darwin Mac-mini-van-Johan.local 14.5.0 Darwin Kernel Version 14.5.0
Wed Jul 29 02:26:53 PDT 2015
root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
Comment 1 Al Clark [MSFT] 2016-03-09 09:18:31 UTC
Created attachment 15326 [details]
Sample App

Sample App
Comment 3 Jason Smith [MSFT] 2016-03-16 09:08:41 UTC
Should be fixed in 2.2.0-pre1
Comment 4 Rajneesh Kumar 2016-04-21 15:14:40 UTC
I have checked this issue with XF and observed that this issue has been fixed, now on long press on item, it remain selected and items remain unselected.

Screencast: http://www.screencast.com/t/9TVPGJIamsO

This issue has been fixed, hence closing this issue.

Comment 5 Samantha Houts [MSFT] 2016-11-09 22:16:58 UTC
*** Bug 37513 has been marked as a duplicate of this bug. ***