You have to create the colors.xml file in the res/values folder of your project. The code of colors.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, you can use Colors in your application by following way

android.graphics.Color.TRANSPARENT;

Similarly