Android statusbar icons color

GuilhE picture GuilhE · May 6, 2015 · Viewed 110.7k times · Source

I was wondering if it's possible to change the statusbar icons colour (not the statusbar colour, colorPrimaryDark) enter image description here Let's say I want this statusbar with:
<item name="colorPrimaryDark">@android:color/white</item>

and the icons in black, is it possible?

Thanks.

EDIT:

New in the M developer preview: windowLightStatusBar. Flipping this on in your theme tells the system to use a dark foreground, useful for lighter colored status bars. Note the M preview seems to have a bug where notification icons remain white, while system status icons correctly change to semitransparent black.

from: Roman Nurik Google+ post enter image description here

Answer

eOnOe picture eOnOe · Nov 24, 2015

Yes it's possible to change it to gray (no custom colors) but this only works from API 23 and above you only need to add this in your values-v23/styles.xml

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

enter image description here