I was testing the following:
if(x==1){
button.setColor(#D32F2F);
// o de algo a si
button.setBackground(#D32F2F);
}
I do not know if they understand me since I am something new in this.
The buttons I want them to change color depending on the state if 0
: red, if it is 1
: green and if it is 3
: gray.