I wanted to leave an ImageButton is disabled (not clickable) but have used android: enabled = \"false\" and does\'t work.
ImageButton
android: enabled = \"false\"
You can use the android:clickable attribute on the XML, or the setClickable(boolean) method from your code.