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