当前位置: 代码迷 >> Android >> Android中为啥不提供双击事件的接口
  详细解决方案

Android中为啥不提供双击事件的接口

热度:93   发布时间:2016-04-27 23:38:25.0
Android中为什么不提供双击事件的接口

附上文章链接:http://stackoverflow.com/questions/2217670/android-how-to-detect-double-tap

这句话讲出了原因:Implementing Double Touch will affect handling of single touches, because you'll have to wait to see if every single touch turns into a double touch before you can process it.

当等待双击事件第二击的时候,影响了单击事件的响应,就是这么简单,恍然大悟。

当然,不需要单击时间时,如上的StackOverflow链接也提供了很好的解决方案。


版权声明:本文为博主原创文章,未经博主允许不得转载。

  相关解决方案