Android studio 顶部状态栏 的样式 顶部小刘海是否显示 颜色代码 颜色转换
作者:互联网
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,在上方网站得到需要的颜色代码
标签:xml,状态栏,顶部,value,color,rgb,studio,设置,颜色代码 来源: https://blog.csdn.net/cui_xiaoyu/article/details/105653139