I want to set the button unclickable and look like a dark gray image of an button?
Is this possible?
You can disable the <button> element in HTML by adding the disabled attribute to the element. The disabled attribute is a boolean attribute that allows you to disable an element, making the element unusable from the browser.
We will use addActionListener(), ActionEvent() and setEnabled() on this button. Here we will call setEnabled(false) on the button. button. setEnabled(false);
To make a button non-clickable, you can enter: pointer-events: none; into the button module's "Button Settings > Advanced > Custom CSS > Main Element" box, like so: Note that this will also disable the hover effect on the button.
From the xml:
android:enabled="false"
From the code
button.setEnabled(false);
What about button.setEnabled(false) ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With