Bug 29184 - Group Header Text Font Color in ListView
Summary: Group Header Text Font Color in ListView
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Rui Marinho
URL:
Depends on:
Blocks:
 
Reported: 2015-04-17 07:10 UTC by Anubhav Ranjan
Modified: 2015-07-20 08:13 UTC (History)
7 users (show)

Tags: android listview AC
Is this bug a regression?: ---
Last known good build:


Attachments
Simple Repro (72 bytes, text/plain)
2015-04-17 13:42 UTC, Taylor L
Details
Test case (cleaned-up and attached directly to the bug) (272.97 KB, application/zip)
2015-04-21 00:37 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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:
VERIFIED FIXED

Description Anubhav Ranjan 2015-04-17 07:10:06 UTC
One of our customers is facing issues with Group Header Text Color in List View.

#Description:
==========

I've got a really simple list view that is trying to take advantage of
group headings:

ListView listView = new ListView
{
IsGroupingEnabled = true,
GroupDisplayBinding = new Binding("Name"),
ItemTemplate = new DataTemplate(typeof(TextCell))
{
Bindings =
{
{ TextCell.TextProperty, new
Binding("DisplayName") }
}
},
ItemsSource = categories
};

listView.ItemSelected += ListView_ItemSelected;

Content = new StackLayout
{
Children = {
new HeaderControl { ContextText = string.Format("Select
a Milestone"), Style =
(Style)Application.Current.Resources[HeaderControlStyles.MilestoneContextHeader]
},
listView
}
};


When I first load the list, it looks great:

[image: Inline image 1]

If I scroll down and then back up, all of the group headers lose their coloring:

[image: Inline image 2]

I just upgraded to the latest NuGet package (1.4.1.6349) and this still repros.

#Sample Code:
===========

https://docs.google.com/file/d/0B4gxx30YmY-tOTNudjcyTWhuejQ/edit?usp=drive_web
Comment 2 Taylor L 2015-04-17 13:42:47 UTC
Created attachment 10803 [details]
Simple Repro

Simplest repro for the bug.
Comment 3 Anubhav Ranjan 2015-04-20 15:23:31 UTC
Screen Recording of the Issue: http://screencast.com/t/vbEHrBYK3z
Comment 4 Brendan Zagaeski (Xamarin Team, assistant) 2015-04-21 00:37:01 UTC
Created attachment 10834 [details]
Test case (cleaned-up and attached directly to the bug)

I was also able to reproduce this issue using the test case from comment 2. In case it might be more convenient, I have updated the Xamarin.Forms package versions, deleted the `bin`, `obj`, and `packages` folders, and re-attached the test case from comment 2 directly on the bug report.




## Steps to reproduce

1. Run the attached test case on Android emulator or device.

2. Scroll the list view so that 1 new group header text appears on screen. (Or scroll 1 of the initial group headers _off_ screen, and then scroll it _back_ on screen.)




## Results

- When the app first loads, the on-screen group header text is _white_ while the other list items are _blue_.

- After step 2, the group header text that was moved from off-screen to on-screen is _blue_ rather than _white_.




## Expected results

Off-hand, I'm not sure if the intended behavior is that the group header text should always be _blue_ (which would mean the initial state when the app loads is incorrect), or if the group header text should always be _white_ (which would mean the state after scrolling the list view is incorrect).


- On iPhone 5s iOS 8.2 simulator, the group headers are black text on grey backgrounds, while the list entries are black text with no background.

- On Windows Phone emulator, the group headers are white text on blue backgrounds, while the list entries are white text with no background.

- The text color does _not_ change on iPhone or Windows phone after the group header text has been moved off-screen and then back on-screen.




## Version information



### Android devices

Xamarin Android Player 0.3.7 (1), Nexus 4 (KitKat)

LG Optimus L9, Android 4.1.2



### Xamarin.Forms

I see the same behavior on:

1.4.2.6353-pre2

and

1.3.2.6316


### XamarinVS

Xamarin   3.11.431.0 (3673cfb)
Xamarin.Android   5.1.0.113 (218021d1c15e4f6165061767f800f31efb02b72f)
Xamarin.iOS   8.10.0.0 (7741cc495ab0baf04ff0405d0604bc27f0ecae2e)



Best,
Brendan
Xamarin Customer Support
Comment 5 Brendan Zagaeski (Xamarin Team, assistant) 2015-04-21 00:38:36 UTC
Per comment 4, I'm confirming, updating the XF version number, and marking this as Android-specific.
Comment 6 Jason Smith [MSFT] 2015-07-08 06:52:16 UTC
Should be fixed in 1.4.4-pre1
Comment 7 Parmendra Kumar 2015-07-20 08:13:20 UTC
I have checked this issue with X.F 1.4.4-pre2 and its working fine at my end.

Hence closing this issue.