How to set delay in Android onClick function

前端 未结 5 1604
借酒劲吻你
借酒劲吻你 2020-11-29 09:03

) I\'m in a process of creating a memory game. My problem is that whenever i click for the second time, i can\'t even see toggled button. To be clear - first click toggles t

5条回答
  •  天命终不由人
    2020-11-29 09:43

    You never should sleep in UI thread (by default all your code runs in UI thread) - it will only make UI freeze, not let something change or finish. I can't suggest more because I don't understand code logic.

提交回复
热议问题