disable an ImageButton?

前端 未结 5 761
旧时难觅i
旧时难觅i 2020-12-10 10:29

I wanted to leave an ImageButton is disabled (not clickable) but have used android: enabled = \"false\" and does\'t work.

5条回答
  •  庸人自扰
    2020-12-10 11:10

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

提交回复
热议问题