我正在查看ViewConfiguration类文档,我找到了getJumpTapTimeout()方法.描述说它用于确定用户是想要执行"跳转"点击还是常规点击.用户必须在此时间内完成跳转点击,否则将是常规跳转点击.问题是这个跳跃是什么?
我查看了源代码,但它没有提供任何线索.跳转点击超时为500毫秒,长按超时也是如此.因此,如果我在同一个地方保持手指超过500毫秒而不移动,这是一个长按,它不是一个水龙头.点按超时是115毫秒,所以我必须至少不要移动我的手指,否则这不会是一个点击.但是在我的500毫秒到期之前我必须做点什么.只是到底是什么?
它与应用于活动页面元素的tap相同,但在早期版本的webview中使用,现在该参数在webview中简单地重新定义为tap_timeout,现在它仅用于dpad
// This should be ViewConfiguration.getTapTimeout()
// But system time out is 100ms, which is too short for the browser.
// In the browser, if it switches out of tap too soon, jump tap won't work.
// In addition, a double tap on a trackpad will always have a duration of
// 300ms, so this value must be at least that (otherwise we will timeout the
// first tap and convert it to a long press).
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
723 次 |
| 最近记录: |