Hi, How to change button background color with style.xml ?
Closed this issue · 3 comments
yusufcakal commented
Hi, How to change button background color with style.xml ?
yusufcakal commented
How to button background color ? Button animation disappears when I change it
rubensousa commented
Programmatically, right? You need to pass a ColorStateList using setSupportBackgroundTintList.
mNormalButton.setSupportBackgroundTintList(new ColorStateList(
new int[][]{new int[]{android.R.attr.state_enabled}},
new int[]{ContextCompat.getColor(this, R.color.colorPrimary)}));
yusufcakal commented
thanks. 👍