Original: Three ways to set text color in Android and color Daquan
Source code: Http://www.zuidaima.com/share/1550463694572544.htm
1, to facilitate the system's own color class
such as Textview1.settextcolor (Android.graphics.Color.RED);
2. Digital color notation
Textview1.settextcolor (0XFFFF00FF);
3. Custom Colors
Textview1.settextcolor (This.getresources (). GetColor (r.drawable.red));
<color name= "White" > #FFFFFF </color> Black
<color name= "Ivory" > #FFFFF0 </color> Ivory-
<color name= "Lightyellow" > #FFFFE0 </color>!--bright yellow--
<color name= "Yellow" > #FFFF00 </color>!--Yellow-to-
<color name= "Snow" > #FFFAFA </color> Snow White!--
<color name= "Floralwhite" > #FFFAF0 </color>!--Flower White---
<color name= "LemonChiffon" > #FFFACD </color>!--Lemon Silk--
<color name= "Cornsilk" > #FFF8DC </color>!--M-Satin
<color name= "Seashell" > #FFF5EE </color>!--Sea-bass--
<color name= "Lavenderblush" > #FFF0F5 </color>!--Mauve--
<color name= "Papayawhip" > #FFEFD5 </color>!--Parquet--
<color name= "Blanchedalmond" > #FFEBCD </color>!--white Apricot--
<color name= "Mistyrose" > #FFE4E1 </color>!--light Rose--
<color name= "Bisque" > #FFE4C4 </color>!--Orange-to-
<color name= "Moccasin" > #FFE4B5 </color>!--deerskin-color
<color name= "Navajowhite" > #FFDEAD </color>!--Nawa--
<color name= "Peachpuff" > #FFDAB9 </color>!--Peachy--
<color name= "Gold" > #FFD700 </color>!--Gold--
<color name= "Pink" > #FFC0CB </color>!--Pink--
<color name= "Lightpink" > #FFB6C1 </color>!--Bright pink--
<color name= "Orange" > #FFA500 </color>!--Orange--
<color name= "Lightsalmon" > #FFA07A </color>!--Bright Beige--
<color name= "Darkorange" > #FF8C00 </color>!--Dark orange-to-
<color name= "Coral" > #FF7F50 </color>!--Coral--
<color name= "Hotpink" > #FF69B4 </color>!--Hot Pink--
<color name= "Tomato" > #FF6347 </color>!--tomato-color
<color name= "orangered" > #FF4500 </color>!--Red-orange--
<color name= "Deeppink" > #FF1493 </color>!--Dark Pink--
<color name= "fuchsia" > #FF00FF </color--purplish red
<color name= "Magenta" > #FF00FF </color>!--Red-purple---
<color name= "Red" > #FF0000 </color>--Red---
Three ways to set text color in Android and color Daquan