运行结果:
步骤:
step1:新建Android项目EX03_03_TextViewColorDemo
step2:res->values添加color.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<color name="white">#FFFFFF</color>
<color name="black">#000000</color>
运行结果:
步骤:
step1:新建Android项目EX03_03_TextViewColorDemo
step2:res->values添加color.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<color name="white">#FFFFFF</color>
<color name="black">#000000</color>