Skip to content

CollectionView with ItemSpacing => Infinite layout loop Android #21379

@rudyspano

Description

@rudyspano

Description

A CollectionView with an ItemSpacing of 1 i causes infinite changes of Cell content controls Height on Android.
As you can see in video and simple repro project

RefreshViewlayoutloop.mov

=> Huge performance Impact.

Reproducible since 8.0.10 then 8.0.14.
Not reproducible in 8.0.6

Simple repro project in attachment.
reprov2.zip

Height values imprecisions, probably due to Android px to MAUI dp conversion..?

Steps to Reproduce

See repro project.

Link to public reproduction project repository

No response

Version with bug

8.0.14 and 8.0.10

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI, Yes, this used to work in Xamarin.Forms

Last version that worked well

8.0.6 SR1

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

Not using ItemSpacing

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

area-controls-collectionviewCollectionView, CarouselView, IndicatorViewi/regressionThis issue described a confirmed regression on a currently supported versionplatform/androidt/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions