android:enabled="false" android studio through java code example Example: stop displaying button in android myButton.setEnabled(false);