tags:

views:

87

answers:

1

Does anyone have or know where I might get an Android color xml resource file containing all the X11/w3c color codes?

A: 

U have to create the Color.xml file in the res/value folder of ur project. the code of Color.xml is

<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="orange">#ff5500</color>
<color name="white">#ffffff</color>
<color name="transparent">#00000000</color>
<color name="date_color">#999999</color>
<color name="black">#000000</color>
<color name="gray">#999999</color>
<color name="blue">#0066cc</color>
<color name="gold">#e6b121</color>
<color name="blueback">#99FFFF</color>
 <color name="articlecolor">#3399FF</color> 
 <color name="article_title">#3399FF</color> 
<color name="cachecolor">#8ad0e8</color>
</resources>

or Alternatively u can use Colors in your application by following way

android.graphics.Color.TRANSPARENT;

Similarly

android.graphics.Color.RED;
Tilsan The Fighter
Thanks, but I am aware of all that. It's just that the X11/W3c color set is such a standard, I was hoping someone might have one ready made!
gssi