android button disable and enable code example Example: disable button in android studio myButton.setEnabled(false);