How to set a Button gray and unclickable? [duplicate]
I want to set the button unclickable and look like a dark gray image of an button开发者_高级运维?
Is this possible?
From the xml:
android:enabled="false"
From the code
button.setEnabled(false);
What about button.setEnabled(false) ?
simply set the attribute android:enabled="false" in your xml.
精彩评论