嘿,我正在尝试将状态栏的颜色更改为与操作栏颜色相同(可能是透明的)。在 Android Lolipop 上这不是问题,但在 Kitkat 上不是问题 it looks like on this picture
我尝试了很多其他解决方案,但仍然无法解决问题。
这里是v19 xml样式
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
最佳答案
这在 Android 4.4 API 级别 19 中是不可能的。 您可以从 Android 5.0 API 级别 21 及更高版本开始执行此操作。
关于android - 更改 Android kitkat 上的状态栏颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33678266/