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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…