I\'m new to android programming. How do I change the color of a button?
To change the color of button programmatically
Button b1; //colorAccent is the resource made in the color.xml file , you can change it. b1.setBackgroundResource(R.color.colorAccent);