Tommy Tommy - 1 year ago 102
Android Question

Set OnClickListener off and then on

I am setting the OnClickListener off after the user has clicked on the button.


This makes the button unclickable but I want it to be clickable after the user has clicked another button.

How can I do this?

Answer Source

Just set

confirm.setClickable(false); to disable and confirm.setClickable(true) to enable it again.

See Here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download