Disable an ImageButton

后端 未结 7 1796
小蘑菇
小蘑菇 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);

    0 讨论(0)
提交回复
热议问题