I have tried several options but none of them work and all the documentation I find is deprecated.
Asked
Active
Viewed 39 times
2 Answers
1
Try with this: buttonName.setBackgroundTintList(AppCompatResources.getColorStateList(this, R.color.COLOR));

aspitzner
- 11
- 1
0
Hi Rodriguez Manuel Joaquin, i would suggest you try with the following line:buttonName.setBackgroundTintList(AppCompatResources.getColorStateList(this, R.color.COLOR));

AGUSTIN TORMAKH
- 16
- 1