如何更改kitkat和棒棒糖中的状态栏图标颜色? [英] How to change the status bar icon color in kitkat and lollipop?

查看:129
本文介绍了如何更改kitkat和棒棒糖中的状态栏图标颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改应用中状态栏图标的颜色。我google了很多,但我没有找到任何东西。 Plz为我提供了任何帮助。对于低于23的API。

I want to change the color of status bar icons in my app. I googled it a lot but i did not found any thing. Plz provide me any help. For API below 23.

谢谢

推荐答案

摘自 https://stackoverflow.com/a/24997241/6296561

Android 5.0 Lollipop推出了Material Design主题,它根据主题的ColorPrimaryDark值自动为状态栏添加颜色。

Android 5.0 Lollipop introduced Material Design theme which automatically colors the status bar based on the ColorPrimaryDark value of the theme.

由于图书馆的设备pre-lollipop支持support-v7-appcompat从版本21开始。

This is supported on device pre-lollipop thanks to the library support-v7-appcompat starting from version 21.

这篇关于如何更改kitkat和棒棒糖中的状态栏图标颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆