没有资源的发现,给定的名称相匹配(在“安卓基色') [英] No resource found that matches the given name (at 'android:color Primary')
本文介绍了没有资源的发现,给定的名称相匹配(在“安卓基色')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<resources>
<!-- inherit from the material theme -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- Main theme colors -->
<!-- your app branding color for the app bar -->
<item name="android:colorPrimary">@color/primary</item>
<!-- darker variant for the status bar and contextual app bars -->
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<!-- theme UI controls like checkboxes and text fields -->
<item name="android:colorAccent">@color/accent</item>
</style>
</resources>
请尝试解决problemmmmmm ...
Please try to resolve the problemmmmmm...
感谢名单,提前
推荐答案
其实,你可以使用这个属性,使用支持库:
Actually, you can use this attribute, using the support library:
<style name="AppTheme" parent="@style/Theme.AppCompat.Light">
<item name="colorPrimary">...</item>
</style>
您也可以使用其他的:
<item name="colorPrimaryDark">...</item>
<item name="colorAccent">...</item>
这篇关于没有资源的发现,给定的名称相匹配(在“安卓基色')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文