最佳答案
可以从 Lollipop 更改状态栏的颜色
但实际上您可以为 Api >= 19 更改状态栏的颜色
在 value-v19 的样式里面放
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="MaterialDrawerTheme.Light">
<!-- Customize your theme here. -->
<item name="android:windowNoTitle">true</item>
<item name="android:windowTranslucentStatus">true</item>
.....
</style>
</resources>
状态栏的背景色会变成透明色,为了给它上色,你只需在你的应用中添加一个背景色,这样状态栏就会采用那种颜色
希望这很清楚并且有帮助
关于安卓 : status bar color change for API level below 21,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34085004/