Android Color Generator is the initiative of http://programmerguru.com to help Android community, programmerguru.com is one of the top tutorial sites which writes tutorials on technologies like Android, jQuery, AJAX, JSON and more.
It is a free online tool which helps you to create colors.xml. A color name and value are defined in colors.xml which will be used in Android applications to apply colors to Views.
With the help of this tool, you can generate colors.xml with upto 50 colors at a time.
Generate colors.xml in just three steps:
Step 1: Pick colors from Android Swatch, HTML Color chart or Color Picker.
Step 2: Review and update color name of the selected colors.
Step 3: Generate colors.xml and download it.
<?xml version="1.0" encoding="utf-8"?>
Just place the file under res/values/ folder.
Resources res = getResources();
int color = res.getColor(R.color.full_red);
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textColor="@color/half_red" android:text="Hello"/>
Select your favorite colors (Maximum of 50) by clicking on the color cells. Selected colors will be added to the list.
You can now update the auto generated Color names and also unselect the Colors(if needed) from below table. Leave them unchanged if you don't want to update Color names.
You are in the final step of generating colors.xml, just click the below button to generate XML.
Share your experience of using this tool right from below. (here)