I am making a game and when I disable a button with setEnabled(false); the buttons turns grey which clashes with the other colors in the game. Is their a way to change the color of the button when it is disabled?
setEnabled(false);
You can add HTML coding to your button which gives a large range of flexibility, even to disabled buttons.
Example: button.setText("<html><font color = red>3</font></html>");
2.1m questions
2.1m answers
60 comments
57.0k users