开发者

(Android)Need to fire an event when user touches to the screen an another when releases?

开发者 https://www.devze.com 2023-03-06 11:48 出处:网络
How to fire an event when user touches to screen an another(this i开发者_运维问答s the part i stuck) when releases?Use a Touch listener, the MotionEvent will have an Action type of \"ACTION_DOWN\" whe

How to fire an event when user touches to screen an another(this i开发者_运维问答s the part i stuck) when releases?


Use a Touch listener, the MotionEvent will have an Action type of "ACTION_DOWN" when the user presses, "ACTION_UP" when he releases. See the motion event documentation.

0

精彩评论

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