Set the Color of text
1. Add a Button.
2. Open the layout, main.xml and add the following highlighted code inside the <Button> tag. This will set the text color to green.
<Button
....
android:textColor="#00CC00"
/>
3. Determine the Hex value for the color you would like and replace the android:textColor value with your color.
4. Compile and run!
Related Articles