创建新的项目,androidstudio都会默认为我们新建一个主题的style,里面包含这三种颜色属性,大抵如此:

    <!-- 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>

直接上图解释:

android colorPrimary、colorPrimaryDark和colorAccent都代表什么意思

相关文章:

  • 2021-06-16
  • 2022-12-23
  • 2021-04-07
  • 2021-12-27
  • 2022-01-10
  • 2021-04-06
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2022-01-02
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2021-11-22
相关资源
相似解决方案