AvaloniaUI/Avalonia

Android can not full screen

Closed this issue · 3 comments

Describe the bug

I use Avalonia develop an Android, when version is Avalonia 11.1.0 , app can full screen ,but when update to 11.2, can not.
My code:
image

To Reproduce

  1. Create a crossplantfrom applicaiton.
  2. run in android, can full screen.
  3. update all avalonia nuget to 11.2.2
  4. run in android, can not full screen.

Expected behavior

No response

Avalonia version

11.2.2

OS

Android

Additional context

No response

Use the InsetsManager(retrieved from Toplevel) to configure full screen.

Use the InsetsManager(retrieved from Toplevel) to configure full screen.

I set IsSystemBarVisible, but not effect
image

Use the InsetsManager(retrieved from Toplevel) to configure full screen.

I set IsSystemBarVisible, but not effect image

I solved this problem. InsetsManager should used in Loaded Event:
image