android studio how to disable button code example
Example 1: disable button in android studio
myButton.setEnabled(false);
Example 2: how to disable button android
// Kotlin
myButton.isEnabled = false
myButton.setEnabled(false);
// Kotlin
myButton.isEnabled = false