Many answers I saw said try adding <item name="android:windowLightStatusBar">true</item>
,
but my status bar font color isn't changed from white whether I set true
or false
. (default color is white).
I added this line in .../res/values/themes/themes.xml and themes.xml(night)
.
I don't care it will be deleted or transparentized. Just want to make it invisible.
Like this : enter image description here
What should I do now? Someone help please?
If you need more detailed information, please comment! thank you!
my code is here (themes.xml) :
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.NewProject" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/black</item>
<item name="colorPrimaryVariant">@color/black</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
<!-- Customize your theme here. -->
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<!-- ** Added Line ** -->
<item name="android:windowLightStatusBar">true</item>
</style>
</resources>