gpt4 book ai didi

android - 什么是 android GestureDetector 长按超时?

转载 作者:搜寻专家 更新时间:2023-11-01 08:51:41 25 4
gpt4 key购买 nike

什么是 android GestureDetector onLongTap 超时?我需要在用户按下并开始移动时调用另一个事件(以区分“按下并移动”和“按下并按住”的情况)

最佳答案

到目前为止,我对手势检测器的了解是,Android 的 GestureDetector 有一个 300 毫秒的超时时间来区分单击和双击。如果在 300 毫秒内没有发生第二次点击,则调用 onSingleTapConfirmed。

有关更多信息,请访问以下链接:

http://androidcookbook.com/Recipe.seam?recipeId=2871

http://www.basic4ppc.com/android/help/gesturedetector.html

希望这会提供一些帮助..:)

关于android - 什么是 android GestureDetector 长按超时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22683948/

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