Skip to content

[Android] ItemSizingStrategy="MeasureFirstItem" does not work correctly with VerticalGrid and grouped ItemsSource #29191

@NafeelaNazhir

Description

@NafeelaNazhir

Description

When using a CollectionView with ItemSizingStrategy="MeasureFirstItem" in a VerticalGrid layout for grouped lists, items with long content in the first span do not properly wrap or align. This causes the content to overlap with other items in the grid, leading to layout issues.

Screen.Recording.2025-04-25.at.11.54.31.AM.mov

Steps to Reproduce

  1. Run the attached sample ItemSizingStrategySample 2.zip
  2. Select ItemsLayout as Vertical Grid, ItemSource as grouped list and ItemSizingStrategy as MeasureFirstItem.
  3. Observe that Items with long content in the first span do not properly wrap or align. This causes the content to overlap with other items in the grid, leading to layout issues.

Expected Behavior: The CollectionView should size all items in the grid based on the size of the first item in the group, and the content should wrap properly within the allocated space.

Actual Behavior: The items in the CollectionView do not wrap their content properly. The layout appears broken, with inconsistent item sizes and potential overflow issues.

Link to public reproduction project repository

No response

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions