android api 21/22, status bar icons don't show when statusBarColor is set to white -


api 21+ supports android:statusbarcolor i'm using , setting white in theme. on api 23 on nexus 6p status bar icons show darker tint, can see them against white status bar.

however on api 21/22, icons tinted white disappear against white background. understanding google set status bar icons white in lollipop , advised against white background. there anyway setcolorfilter() or similar icons in status bar?

here's theme:

<style name="apptheme" parent="theme.appcompat.light.darkactionbar">     <item name="colorprimary">@color/colorprimary</item>     <item name="colorprimarydark">@color/gray</item>     <item name="coloraccent">@color/coloraccent</item>     <item name="android:statusbarcolor">@color/white</item> </style> 

if change android:statusbarcolor #cccccc, example, see white status bar icons. tint them dark gray , keep status bar color white.

use dark button color :

<style name="yourtheme" parent="@style/theme.appcompat.light">     <item name="android:actionbarstyle">@style/yourtheme.actionbar</item> </style> 

use light button color :

<style name="yourtheme" parent="@style/theme.appcompat.light.darkactionbar">     <item name="android:actionbarstyle">@style/yourtheme.actionbar</item> </style> 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -