// Step 1 : Create a color in color.xml file <color name="user_color"> #008577 </color> // user_text is the string name in strings.xml file user_text.setTextColor(getResources().getColor(R.color.user_color));