android - 找不到样式属性 textColorPrimary

标签 android

我想更改 styles.xml 中 textColorPrimary 属性中文本的颜色

<item name="textColorPrimary">#FFEB3B</item>

Error:error: style attribute 'attr/textColorPrimary (aka com.example.android.christmasgifts:attr/textColorPrimary)' not found.

下面是完整的错误 enter image description here

最佳答案

我遇到了同样的问题。 错误:错误:未找到样式属性“attr/textColorPrimary(又名 ...../textColorPrimary)”。

有关设计的全部信息都在 values.xml 中。

我从 textColorPrimary 更改为 android:textColorPrimary 并且现在可以使用了。 :)

enter image description here

关于android - 找不到样式属性 textColorPrimary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47574268/

相关文章:

android - 不接受打包 Android SDK Build-Tools 的许可

java - 在 Main Activity 中的任何地方启动一个 Activity

android - 如何将动态创建的LinearLayout添加到ScrollView中?

android - 将 ArrayList<Object> 存储为 JSON SharedPreference 或 SQLite 数据库表?

android - 更改 TextInputLayout 轮廓颜色

java - Realm:如果应用程序及其库之一使用 Realm 并设置(两者)defaultConfiguration,那么 defaultInstance 是什么?

android - webview 中的 HTML 实体

java - Android:图像的大小会影响SURF的处理时间

android - 如何在 android 中使用 .pls 文件进行流式传输?

Android TextView 给出 IndexOutOfBoundsException TextLine.handleRun