在values中添加colors.xml

如何在values中添加colors.xml文件?
按钮上的文字,背景色的动态变化的xml放在res/drawable里,现在我就说静态的xml文件吧。 
res/values/colors.xml
<?xml version="1.0" encoding="utf-8"?> 
<resources> 
<color name="white">#ffffff</color> 
<color name="black">#000000</color> 
</resources>
在main.xml文件的组件中用 android:textColor="@color/white"使用

原文地址:https://www.cnblogs.com/zmaibbs7/p/4817363.html