Android上的活动onLongPress有多长时间? [英] How long is the event onLongPress in the Android?
问题描述
Android支持一个事件onLongPress。我的问题是多长时间(以毫秒为单位)触发事件?
Android supports an event onLongPress. The question I have is 'how long' (in milliseconds) is the 'press' to trigger the event?
推荐答案
长按时间是 getLongPressTimeout(),目前是500ms,但可能会改变(1.0是1000ms,但在以后的版本中更改;也许将来可能会由用户自定义)。
The standard long press time is what is returned by getLongPressTimeout(), which is currently 500ms but may change (in 1.0 it was 1000ms but changed in a later release; maybe in the future it will be user-customizable).
浏览器使用自己的长按时间,因为它有一些更复杂的交互。我相信这应该是1000,但是将来可能会改变。它不是一起添加不同的超时。
The browser uses its own long press time because it has some more complicated interactions. I believe this should be 1000, though again it may change in the future. It is not adding the different timeouts together.
这篇关于Android上的活动onLongPress有多长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!