Skip to content

[Android][.NET 10] Label inside ContentView or ContentPage with VerticalOptions="End" renders behind navigation bar #33013

@AneesFathimaS

Description

@AneesFathimaS

Description

When a Label is placed inside a ContentView or directly inside a ContentPage and set to VerticalOptions="End", it appears behind the Android navigation bar when displayed at the bottom. This issue occurs only in .NET MAUI 10.

Case 1: Label inside the ContentView

<ContentPage>
   <ContentView>
<Label Text="Footer" TextColor="White" FontSize="Large" VerticalTextAlignment="Start" VerticalOptions="End" HeightRequest="40" BackgroundColor="Blue"/>
</ContentView>
</ContentPage>

Case 2: Label inside the ContentPage

<ContentPage>  
<Label Text="Footer" TextColor="White" FontSize="Large" VerticalTextAlignment="Start" VerticalOptions="End" HeightRequest="40" BackgroundColor="Blue"/>
</ContentPage>

Steps to Reproduce

  1. Run the attached sample in Android platform.
  2. The label will be behind the navigation bar.

Expected Behavior
The label should appear above the navigation bar, respecting safe area insets.

Actual Behavior
The label is rendered behind the navigation bar on Android.

Issue screenShot:

Image

Link to public reproduction project repository

FrameworkIssue.zip

Version with bug

10.0.11

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.120 SR12

Affected platforms

Android

Affected platform versions

Checked in Android API 33

Did you find any workaround?

FrameworkIssue.zip

Relevant log output

Metadata

Metadata

Assignees

Labels

i/regressionThis issue described a confirmed regression on a currently supported versionplatform/androidregressed-in-10.0.10s/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