Friday, 21 August 2020

"android:windowLightStatusBar" not working

I seriously do not how this is not working. Even though I do have an API way beyond 23 the status bar text color remains white even when windowLighStatusBar is set to true. Here is my application theme:

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
    <item name="colorPrimary">@color/offWhite</item>
    <item name="colorOnPrimary">@color/black</item>
    <item name="colorPrimaryDark">@color/offWhite</item>
    <item name="colorOnSurface">@color/black</item>
    <item name="colorSurface">@color/grey</item>
    <item name="colorSecondary">@color/monaYellow</item>
    <item name="colorSecondaryVariant">@color/bluePowder</item>
    <item name="android:colorBackground">@color/offWhite</item>

    <item name="android:windowLightNavigationBar">true</item>
    <item name="android:windowLightStatusBar">true</item>
</style>

I appreciate the help in advance.



from "android:windowLightStatusBar" not working

No comments:

Post a Comment