how to disable button from code android 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