Android studio 顶部状态栏 的样式
value下的colors.xml设置颜色
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#0071BC</color>
<color name="colorPrimaryDark">#29ABE2</color>
<color name="colorAccent">#0071BC</color>
</resources>
value下的strings.xml设置标题
<resources>
<string name="app_name">条码</string>
</resources>
value下的styles.xml设置是否显示标题栏
<resources>
<!-- Base application theme. -->
//设置是否显示标题栏
<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>
</style>
<style name="MyCheckBox" parent="AppTheme">
<item name="colorControlNormal">#CCCCCC</item>
<item name="colorControlActivated">#0099CC</item>
</style>
</resources>
颜色代码 https://blog.csdn.net/weixin\_37160260/article/details/80447797
rgb转16进制 https://www.sioe.cn/yingyong/yanse-rgb-16/
可用Windows自带画图吸管获得想要的颜色rgb,在上方网站得到需要的颜色代码