开发者

Android: cancelling pending events

开发者 https://www.devze.com 2023-03-14 10:36 出处:网络
I would like to be able to cancel开发者_运维百科 all pending events in my App. How do I do it?

I would like to be able to cancel开发者_运维百科 all pending events in my App. How do I do it?

If many events stack up (due to the user "mashing" different areas of the screen repeatedly) I would like to cancel all events except the last one.

This is not the same as stopping the propagation of events further down the view stack (which is done by returning "true" from the event handler (for an example of this see here).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号