【问题标题】:My colors.xml file not showing the theme color. everything is in grey color. how to solve this?我的 colors.xml 文件没有显示主题颜色。一切都是灰色的。如何解决这个问题?
【发布时间】:2020-04-26 11:29:56
【问题描述】:

下载 android studio 4.0 canary 后,我的 colors.xml 文件没有显示任何主题颜色。我可以访问所有颜色,但我在 kotlin 文件和 color.xml 中的其他变量是灰色的。

【问题讨论】:

    标签: android android-studio android-layout kotlin


    【解决方案1】:

    颜色是资源目录,所以必须用资源标签包裹

    像这样:

    (这里是你的颜色)

    去掉'

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-02-16
      • 2017-08-09
      • 1970-01-01
      • 2016-09-08
      • 2022-11-04
      • 2013-09-09
      • 2021-08-13
      相关资源
      最近更新 更多