how to disable button when it is clicked in android studio code example Example: disable button in android studio myButton.setEnabled(false);