Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Calling StatusBar.SetColor() causes SafeAreaEdges="Container" to render incorrectly on pages within a TabbedPage on Android API 34 and lower (non-edge-to-edge mode). An extra gap appears between the status bar and page content.
Expected Behavior
All tabs render content correctly with proper safe area insets.
Steps To Reproduce
- Create a
TabbedPage with multiple tabs
- Each tab is a
NavigationPage containing a ContentPage
- Each
ContentPage has SafeAreaEdges="Container"
- Call
StatusBar.SetColor() in App.OnStart()
- Run on Android API 34 (or lower)
Link to public reproduction project repository
https://github.com/DawidBester/TabbedPageSafeAreaGapIssue
Environment
| Component | Version |
|-----------|---------|
| .NET | 10.0 |
| .NET MAUI | 10.0.20 |
| CommunityToolkit.Maui | 13.0.0 |
| Platform | Android API 34 and lower |
| Device | Any Android device/emulator |
Anything else?
Additional Context
- ✅ NOT affected: Android API 35/36 (edge-to-edge mode) works correctly
- ✅ NOT affected:
StatusBar.SetStyle() alone does NOT cause this issue
- 🔧 Workaround: Use
colorPrimaryDark in Android styles.xml instead of StatusBar.SetColor()
<!-- In Platforms/Android/Resources/values/styles.xml -->
<item name="colorPrimaryDark">#FF005a00</item>
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Calling
StatusBar.SetColor()causesSafeAreaEdges="Container"to render incorrectly on pages within aTabbedPageon Android API 34 and lower (non-edge-to-edge mode). An extra gap appears between the status bar and page content.Expected Behavior
All tabs render content correctly with proper safe area insets.
Steps To Reproduce
TabbedPagewith multiple tabsNavigationPagecontaining aContentPageContentPagehasSafeAreaEdges="Container"StatusBar.SetColor()inApp.OnStart()Link to public reproduction project repository
https://github.com/DawidBester/TabbedPageSafeAreaGapIssue
Environment
Anything else?
Additional Context
StatusBar.SetStyle()alone does NOT cause this issuecolorPrimaryDarkin Androidstyles.xmlinstead ofStatusBar.SetColor()