dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.82k stars 1.66k forks source link

Layouts which work fine in iOS are blank in Android, but suddenly work if "touched" via hot reload. #23056

Open RobTF opened 2 weeks ago

RobTF commented 2 weeks ago

Description

Many layouts in Android will "blank screen" whilst working fine in iOS. The layout is valid and can be made to work in development if a developer makes a non-functional change to the XAML which causes hot reload to do a re-render/re-measure/whatever.

This makes layouts unreliable.

Steps to Reproduce

A Microsoft representative will need to work with my team to see a repro as I cannot repro this in a "hello world" style base case.

Link to public reproduction project repository

No response

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13, Android 14

Did you find any workaround?

Meddle with the layout until something hopefully works more consistently.

https://github.com/dotnet/maui/assets/4292237/c68b5152-7c9f-4ef0-85bc-2cf2430c41b9

Relevant log output

No response

github-actions[bot] commented 2 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.