colors.xml:
<color name="test">#FFFF0000</color>
使用i是不正确的,因为 setTextColor(int color)接收的参数的int 设置的是具体的颜色值。
相关链接:http://stackoverflow.com/questions/4602902/how-to-set-the-text-color-of-textview-in-code
colors.xml:
<color name="test">#FFFF0000</color>
相关链接:http://stackoverflow.com/questions/4602902/how-to-set-the-text-color-of-textview-in-code