Disable an ImageButton

后端 未结 7 1798
小蘑菇
小蘑菇 2020-12-14 01:51

This looks easy, but I\'m not able to disable an ImageButton. It continues to receive click events, and its appearance don\'t change like a standard Button woul

7条回答
  •  攒了一身酷
    2020-12-14 02:16

    if you want to disable an image button,on click event, set the the property "setEnabled" to false

    Ex: imgButton.setEnabled(false);

提交回复
热议问题