MotionEvent子类注释
来源:互联网 发布:淘宝客服骂人投诉电话 编辑:程序博客网 时间:2024/06/03 16:06
- MotionEvent.ACTION_DOWN:在第一个点被按下时触发
- MotionEvent.ACTION_UP:当屏幕上唯一的点被放开时触发
- MotionEvent.ACTION_POINTER_DOWN:当屏幕上已经有一个点被按住,此时再按下其他点时触发。
- MotionEvent.ACTION_POINTER_UP:当屏幕上有多个点被按住,松开其中一个点时触发(即非最后一个点被放开时)。
- MotionEvent.ACTION_MOVE:当有点在屏幕上移动时触发。值得注意的是,由于它的灵敏度很高,而我们的手指又不可能完全静止(即使我们感觉不到移动,但其实我们的手指也在不停地抖动),所以实际的情况是,基本上只要有点在屏幕上,此事件就会一直不停地被触发。
举例子来说:当我们放一个食指到屏幕上时,触发ACTION_DOWN事件;再放一个中指到屏幕上,触发ACTION_POINTER_DOWN事件;此时再把食指或中指放开,都会触发ACTION_POINTER_UP事件;再放开最后一个手指,触发ACTION_UP事件;而同时在整个过程中,ACTION_MOVE事件会一直不停地被触发。
0 0
- MotionEvent子类注释
- MotionEvent
- MotionEvent
- android:MotionEvent
- android:MotionEvent
- MotionEvent对象
- MotionEvent 初探
- MotionEvent对象
- android MotionEvent
- MotionEvent对象
- android motionevent
- Android MotionEvent
- android MotionEvent
- MotionEvent 概述
- MotionEvent简析
- MotionEvent对象
- Android MotionEvent
- MotionEvent详解
- Android 图像处理-- 矩阵变换
- 多进程与多线程区别
- 【原创】使用react-active运行实例
- SQL Server中行列转换 Pivot UnPivot
- Task的使用
- MotionEvent子类注释
- 第八周项目一(1):实现复数类中的运算符重载:类的成员函数
- iOS 实现倒计时
- 从零开始nodejs系列文章
- perl 编程基础
- 关于右值引用的一个错误。
- 银联在线支付---利用测试案例代码模拟支付应用(修改)
- 读取excel 工具类
- Android f_rndis 分析笔记