How to change the color of text in the status bar on darkroid 4.4

Almost 2 weeks ago I was looking for How to change the status bar text color to dark on Android 4.4

The default text color is white, like this

Because I don’t have enough votes, so I can’t post photos. see details with pictures here

I would like to change the topmost text color to darkness, how can I do this?

At a point in time I find an application,

download jumei app

I'm so sorry for my poor english, thanks!

+6
source share
2 answers

Unable to change the status bar color in android. The only thing you can set in your application is the background color in the status bar (see this thread ).

Perhaps you can post additional information about your problem (your links do not work).

+1
source

You cannot set the color of the text in the status bar by specifying any color explicitly

But you can try the alternative that is added in API 23,

You can use the attribute "android: windowLightStatusBar" in two ways.

  • "android: windowLightStatusBar" = true, the color of the status bar text will be compatible (gray) when the color of the status bar is lit.

  • "android: windowLightStatusBar" = false, the color of the status bar text will be compatible (white) when the color of the status bar is dark

<style name="statusBarStyle" parent="@android:style/Theme.DeviceDefault.Light"> <item name="android:statusBarColor">@color/status_bar_color</item> <item name="android:windowLightStatusBar">false</item> </style> 

You can check the above api in the link below - https://developer.android.com/reference/android/R.attr.html#windowLightStatusBar

+4
source

Source: https://habr.com/ru/post/980825/


All Articles