Skip to content

[Android] CollectionView Header and Footer Do Not Align with Horizontal ItemsLayout When EmptyView is Displayed #28622

@NafeelaNazhir

Description

@NafeelaNazhir

Description

When setting the ItemsLayout of a CollectionView to a horizontal orientation (e.g., HorizontalList or HorizontalGrid) and displaying the EmptyView, the Header and Footer remain vertically aligned, rather than adjusting to the horizontal layout. This inconsistency causes a visual misalignment when the EmptyView/Emptyview template is active.

Screen.Recording.2025-03-26.at.2.52.41.PM.mov

Steps to Reproduce

  1. Launch the Application on Android ItemsLayoutSample.zip
  2. Navigate to OptionsPage and select Horizontal list or Horizontal Grid , Header, Footer and EmptyView .
  3. Observe that the Header and Footer remain vertically aligned, instead of adjusting to the horizontal layout.

Expected Behavior:

The Header and Footer should align horizontally when the ItemsLayout is set to a horizontal orientation, even when the EmptyView is displayed.

Actual Behavior:

When ItemsLayout is set to horizontal and EmptyView is displayed, the Header and Footer remain vertically aligned, instead of adjusting to the horizontal layout.

Link to public reproduction project repository

No response

Version with bug

9.0.50 SR5

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions