我必须更改状态栏的元素颜色和文本颜色,还必须更改 Android 中标题栏的文本颜色:
现有代码如下:
样式文件
<style name="AppThemeNew" 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:statusBarColor">@color/status_bar_color</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>
颜色文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#FDFEFE</color>
<color name="colorPrimaryDark">#F4F6F6</color>
<color name="colorAccent">#088da5</color>
<color name="status_bar_color">#F4F6F6</color>
<color name="status_bar_element_color">#AAB7B8</color>
</resources>
行数据.xml
蝴蝶刀刀
回首忆惘然
相关分类