Skip to content

Label Overlapped by Android Status Bar When Using SafeAreaEdges="Container" in .NET MAUI #32941

@amitfinova-ai

Description

@amitfinova-ai

Description

In my .NET MAUI app targeting Android, the top Label on a ContentPage is overlapped by the status bar. I have set SafeAreaEdges="Container" and hidden the navigation bar (Shell.NavBarIsVisible="False"), but the content does not respect the safe area at the top.

Steps to Reproduce

  1. Create a new .NET MAUI project.
  2. Use the following XAML for a page:
<ContentPage
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="MauiSafeAreaRepro.SignOutPage"
    SafeAreaEdges="Container"
    Shell.NavBarIsVisible="False">

    <VerticalStackLayout Padding="20" Spacing="20">
        <Label Text="SignOut / Session Expiry Page" FontSize="24"/>
        <Button Text="Back to Main" Clicked="OnBackClicked"/>
    </VerticalStackLayout>
</ContentPage>
  1. Run the app on an Android device.
Image Image
20251202-0757-16.7047976.mp4

Expected Behavior
The content should be padded so that it does not overlap with the Android status bar.

Actual Behavior
The Label is overlapped by the status bar.

MauiSafeAreaRepro.zip

Link to public reproduction project repository

No response

Version with bug

10.0.11

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

10.0.11

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

    i/regressionThis issue described a confirmed regression on a currently supported versionplatform/androidregressed-in-10-rc2s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions