Android中为什么不提供双击事件的接口
2015-08-04 12:50
405 查看
附上文章链接: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链接也提供了很好的解决方案。
这句话讲出了原因: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链接也提供了很好的解决方案。
相关文章推荐
- Android Studio 简单介绍和使用问题小结
- Android Studio 简单介绍和使用问题小结
- Android Studio常用插件续
- Android ButterKnife Zelezny
- Android(java)学习笔记139:在TextView组件中利用Html插入文字或图片
- Android Parcelable和Serializable的区别(三)
- Android studio初步学习
- 详解Android系统中的root权限获得原理
- Android Parcelable和Serializable的区别(二)
- Android Parcelable和Serializable的区别(一)
- Android Activity的探讨——中级
- 来,接招!!! (八个Android项目源码)
- Android Studio 无法启动虚拟机失败
- Android上获取SIM卡号码
- 深入android Unable to resolve target 'android-XX'详解
- Android通过Xutils注解实例化以及事件绑定
- android中写文件到内部存储中
- android 矩形布局
- 使用Xcode、Android Studio将项目链接到Git
- android开发艺术探索