android studio button enable atribute code example Example: stop displaying button in android myButton.setEnabled(false);