views:

46

answers:

1

wanted to leave a ImageButton is disabled (not clickable), but have used android: enabled = "false" but does not work

Does anyone know how to disable an ImageButton?

A: 

You can use the android:clickable attribute on the XML, or the setClickable(boolean) method from your code.

Cristian