Xamarin.forms: Issue with ListView GroupHeaders on iOS

Created on 9 Jan 2018  路  5Comments  路  Source: xamarin/Xamarin.Forms

When creating a ListView with a custom GroupHeaderTemplate, even with separators turned off:

SeparatorColor="Transparent" SeparatorVisibility="None"

A faint grey separator is visible below the group header separator, regardless of how you try remove it on iOS 11.

This is present on version 2.5.0.121934 of Xamarin.Forms.

To repo this issue, create a ListView with a custom GroupHeaderTemplate, then set the ListView background colour to a black/dark grey.

Then create the following ListView structure;

Header
Listview item
Listview item
Header
Listview item
Listview item

listview 2 inactive iOS 馃崕 bug

All 5 comments

I have the same issue.
Xamarin.Forms Version 2.5.0.122203

We got around this issue by creating a custom HeaderViewCell Renderer and using a Native Cell.

veryhumble, could you share your renderer with me? I'd appreciate that. Thanks.

It does pretty much nothing except replace the cell. I just needed an empty header, so i don't know if it works with actual content.

Hope it helps:
https://gist.github.com/veryhumble/4e6ed34a1a636accebec11e532b53da8

That worked perfect on my styled headerviewcell. Thank you very much!

Since there seems to be a workaround for this issue, I will go ahead and close this now. Thanks!

Was this page helpful?
0 / 5 - 0 ratings