I wanted to leave an ImageButton is disabled (not clickable) but have used android: enabled = \"false\" and does\'t work.
If you want to disable and "grey out" the image, I use the following (Kotlin):
Disable:
chevron_left.imageAlpha = 75 // 0 being transparent and 255 being opaque
chevron_left.isEnabled = false
Enable:
chevron_left.imageAlpha = 255
chevron_left.isEnabled = true
XML:
Note that the your background color will define the color of the disabled state. Depends on your desired result.