dotnet / dotnet/maui

[Bug] Wrong Layout and Behaviors using Grouped CollectionView on Android

Open
#2,890 6 comments 1 reaction 0 assignees View on GitHub
area-controls-collectionview area-layout platform/android s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

Wrong Layout and Behaviors using Grouped CollectionView on Android.

Using MeasureAllItems:
![image](https://user-images.githubusercontent.com/6755973/136596941-5aac124d-45ad-47c8-9747-717b61b9072b.png)

Using MeasureFirstItem:
![image](https://user-images.githubusercontent.com/6755973/136597025-012ee9ea-f370-4d4e-8abb-30706868b8b7.png)

Using grouped CollectionView cannot scroll on Android.

### Steps to Reproduce

1. Download
[collectionview-issue.zip](https://github.com/dotnet/maui/files/7313156/collectionview-issue.zip)
2. Launch the sample in Android emulator or device.
3. Navigate to the grouped CollectionView sample using a DataTemplate.

### Expected Behavior
Render a correct layout and can scroll.

### Actual Behavior
Cannot scroll and also the layout is wrong.

Contributor guide

Open the contributing guide

Research direction

Start by downloading collectionview-issue.zip and running its grouped CollectionView sample on an Android emulator or device, comparing MeasureAllItems and MeasureFirstItem. Trace the sample's DataTemplate and grouped CollectionView behavior; done means the layout renders correctly and the collection scrolls.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.