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

Major Performance Hit When Using HasUnevenRows to Have Different GroupHeaderTemplate Height

$
0
0

I have a simple ListView for a contact list application with group headers for each letter of the alphabet and the only visual adjustment I want to make is to adjust the row height for my non-header cells (the contact cells) to be a custom height (but consistent, i.e. the cells don't vary). When I set the RowHeight to my custom height, it has the side effect of making the Group Header's height also match which is not desired. When using the recommended approach of setting HasUnevenRows and setting each row's height, I do get the visual look I want, but I take a huge, and unusable, performance hit (my list is about 3,000 rows long).

In my opinion, it should not require the use of HasUnevenRows just to have a different header height from a consistent row height and the underlying iOS implementation is designed to support this (you can specify a default row height and a separate default header height).

So, my question is: Is there a way to avoid this performance hit in the current implementation of Xamarin.Forms or does this need to be a bug fix request (this is a bug in my opinion)?


Viewing all articles
Browse latest Browse all 58056

Trending Articles