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