Bug 40704 - Strange duplication of listview headers when collapsing/expanding sections
Summary: Strange duplication of listview headers when collapsing/expanding sections
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.2.0
Hardware: Macintosh Mac OS
: High blocker
Target Milestone: ---
Assignee: Rui Marinho
Depends on:
Reported: 2016-04-26 13:54 UTC by Richard Hopkins
Modified: 2016-07-05 15:30 UTC (History)
4 users (show)

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

Repro case showing behaviour (169.96 KB, application/x-7z-compressed)
2016-04-26 13:54 UTC, Richard Hopkins

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 Richard Hopkins 2016-04-26 13:54:14 UTC
Created attachment 15845 [details]
Repro case showing behaviour

Issue is current in Forms

Reported by customer.  Repro case is attached.  Steps to reproduce:

1. Run the repro case on device/emulator.
2. Scroll down to the bottom of the listview.
3. Start collapsing the listview sections by clicking on the greenish numbered headers
4. Observe that the text in the headers starts to duplicate

This behaviour only occurs when the listview is scrolled down to the bottom.  Attempting to reproduce this behaviour in other ways (collapsing cells in another order) does not show the issue.  Perhaps related to recycling/caching of headers?
Comment 1 Richard Hopkins 2016-04-29 16:30:58 UTC
Customer has been in touch to state that this is now blocking their release.
Comment 2 Richard Hopkins 2016-06-16 20:50:14 UTC
I have tested an internal build of a new Forms package containing a fix (which carries a version number of

While it appears to fix the initial header duplication bug, it introduces a possible new regression where the section headers in the table fail to display header text when the page is initially loaded.  After scrolling the table or collapsing/expanding the headers, the text is displayed.
Comment 3 Rui Marinho 2016-06-16 22:14:58 UTC
Sorry that VerticalOptions="Center" is the trick, if you remove that on the Label in the GroupHeaderTemplate should work. I cleaned the sample a little bit to try identify the problem and that slip in my test.
We are looking into to issue with that option. Will keep you posted.
Comment 4 Rui Marinho 2016-06-27 13:48:19 UTC
Should be fixed in 2.3.1-pre1
Comment 5 Parmendra Kumar 2016-07-05 15:30:19 UTC
I have checked this issue with Xamarin.Forms 2.3.1-pre2 and its working fine.

Hence closing this issue.