

colorControlHighlight: The ripple color when the button is pressed. Now, there are two important attributes to style a button : colorButtonNormal: The normal color of the button. Change the color of colorAccent to one of your choice to get the desired background color. This would give the following output: Why is the color PINK? The Colored Button takes the color of the colorAccent attribute from the styles.xml file.

We can set the default colored Button style on a button in the following way: last two styles fall under the Flat Buttons category. They are typically used in dialogsįollowing are the primary Button styles that are available.

