gpt4 book ai didi

android - onSingleTapConfirmed 和 onSingleTapUp 的区别

转载 作者:行者123 更新时间:2023-12-03 14:06:12 25 4
gpt4 key购买 nike

onSingleTapConfirmed 和有什么区别和 onSingleTapUpGestureDetector.SimpleOnGestureListener ?其中哪一项与 onClick 相似方法?

最佳答案

根据 GestureDetector.SimpleOnGestureListener 文件,

onSingleTapConfirmed

Notified when a single-tap occurs.

Unlike onSingleTapUp(MotionEvent), this will only be called after the detector is confident that the user's first tap is not followed by a second tap leading to a double-tap gesture.

onSingleTapUp

Notified when a tap occurs with the up MotionEvent that triggered it.



我认为 onClick方法类似于 onSingleTapConfirmed .

关于android - onSingleTapConfirmed 和 onSingleTapUp 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28816251/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com