I wanted to leave an ImageButton is disabled (not clickable) but have used android: enabled = "false" and does't work.
ImageButton
android: enabled = "false"
Does anyone know how to disable an ImageButton?
If you want to show the button as disabled (if you have that set up in an xml drawable file) doing both setClickable(false) AND setEnabled(false) will do the trick.
setClickable(false)
setEnabled(false)
1.4m articles
1.4m replys
5 comments
57.0k users