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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2021-12-10
  • 2021-08-02
  • 2021-11-19
  • 2021-07-24
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2021-12-05
  • 2021-07-27
  • 2021-07-18
  • 2022-02-07
相关资源
相似解决方案