本文介绍了错误:(387,5)错误:找不到资源颜色/colorPrimary(aka com.example.kubix.r3vir3dv3:color/colorPrimary)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个初学者,它与转换代码或定义颜色有关.有人可以帮助我吗?

 < style name ="Base.AlertDialog.AppCompat" parent ="android:Widget">< item name ="android:layout"> @ layout/abc_alert_dialog_material</item>< item name ="listLayout"> @ layout/abc_select_dialog_material</item>< item name ="listItemLayout"> @ layout/select_dialog_item_material</item>< item name ="multiChoiceItemLayout"> @ layout/select_dialog_multichoice_material</item>< item name ="singleChoiceItemLayout"> @ layout/select_dialog_singlechoice_material</item></style> 
解决方案

res/values/color/color.xml 创建名称为 colorPrimary

I'm a beginner and it's about converting this code or defining colors.Can anyone help me with this?

<style name="Base.AlertDialog.AppCompat" parent="android:Widget">
    <item name="android:layout">@layout/abc_alert_dialog_material</item>
    <item name="listLayout">@layout/abc_select_dialog_material</item>
    <item name="listItemLayout">@layout/select_dialog_item_material</item>
    <item name="multiChoiceItemLayout">@layout/select_dialog_multichoice_material</item>
    <item name="singleChoiceItemLayout">@layout/select_dialog_singlechoice_material</item>
</style>
解决方案

res/values/color/color.xml create a color with name of colorPrimary

这篇关于错误:(387,5)错误:找不到资源颜色/colorPrimary(aka com.example.kubix.r3vir3dv3:color/colorPrimary)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 23:25