[英]Invert icon color of status bar
I have searched a lot about this but all I have found is how to change status bar color. 我已经搜索了很多关于这一点,但我发现的是如何更改状态栏颜色。 I want to invert color of icons in status bar on white background like Soundcloud has done in its mobile application like: 我想在白色背景上反转状态栏中图标的颜色,就像Soundcloud在其移动应用程序中所做的那样:
How to do this? 这该怎么做?
You can do that with the following code. 您可以使用以下代码执行此操作。 it's just working on v23 API
. 它只是在使用v23 API
。
In your: values-v23/styles.xml
: 在你的: values-v23/styles.xml
:
<item name="android:windowLightStatusBar">true</item>
Check this link for more information: https://stackoverflow.com/a/30075921/4409113 有关更多信息,请访问此链接: https : //stackoverflow.com/a/30075921/4409113
Or: https://stackoverflow.com/a/33316669/4409113 或者: https : //stackoverflow.com/a/33316669/4409113
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.