在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"使用

posted on 2015-09-17 18:54  纸玫瑰  阅读(413)  评论(0编辑  收藏  举报

导航