When I have an android button and set it as disabled then the button seems as "transparent".
I have a button with custom background for the pressed and focused state. I want to disable it from code. When I try button.setEnabled(false);
I disable the button but it keeps the same custom background. Any idea how to disable my custom button and changes the background as transparent too?