I\'m new to android programming. How do I change the color of a button?
Here is my code, to make different colors on button, and Linear, Constraint and Scroll Layout
First, you need to make a custom_button.xml on your drawable
Custom_Button.xml Code
Second, go to res
Colors.xml Code
#3F51B5
#303F9F
#FF4081
#000
#9400D3
#4B0082
#0000FF
#00FF00
#FFFF00
#FF7F00
#FF0000
Screenshots below
XML Coding Design Preview