Skip to content

[BUG] StatusBarBehavior - StatusBarColor not working (only android sdk 30) #2533

@pawelt94

Description

@pawelt94

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

When I set StatusBarColor to Transparent it only on android sdk 30 does not work properly - statusbar and navigation bar bottom is not transparent.

Android SDK 31

Android SDK 29

Android SDK 30

In the sample project, I just added:

    <ContentPage.Behaviors>
        <toolkit:StatusBarBehavior StatusBarColor="Transparent" StatusBarStyle="LightContent" />
    </ContentPage.Behaviors>

Expected Behavior

Behavior exactly the same as in android sdk 29 or 31

Steps To Reproduce

Open and run solution from reproduction repo. StatusBarBehavior is added in MainPage

Link to public reproduction project repository

https://github.com/pawelt94/androidbugStatusBarBehavior

Environment

- .NET MAUI CommunityToolkit: 11.1.O
- OS: Android SDK 30
- .NET MAUI: maui-android 9.0.14/9.0.100, SDK 9.0.100

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/behaviorsIssue/Discussion/PR that has to do with BehaviorsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions