dotnet / dotnet/maui

[Android] RefreshView doesn't size itself correctly

Open
#9,008 5 comments 6 reactions 0 assignees View on GitHub
area-controls-refreshview area-layout migration-compatibility platform/android s/triaged t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

I have a RefreshView in a grid which 2nd row height is *.
The RefreshView should fill the entire remaining space, whereas it is constrained by its children size.

## With RefreshView

image

### Result 😞

![Screenshot_1658850813](https://user-images.githubusercontent.com/596903/181053370-9afe26f8-1ca9-4a82-9d87-8c327b2a9e12.png)

## With commented RefreshView

image

### Result 😄

![Screenshot_1658850480](https://user-images.githubusercontent.com/596903/181053675-f3346f22-e7d4-486c-ada7-e2b1cee7d3f2.png)

### Steps to Reproduce

launch the sample here on Android:
https://github.com/roubachof/Sharpnado.TaskLoaderView/tree/master/Retronado.Maui

Navigate to "Commands/Snackbar" page.

### Version with bug

6.0.408 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Android

### Affected platform versions

Android

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Research direction

Launch the Retronado.Maui sample on Android and navigate to the Commands/Snackbar page to reproduce the RefreshView sizing issue in the second grid row. Compare the layout with and without RefreshView; done means the RefreshView fills the remaining space instead of being constrained by its children.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.