android中MotionEvent.ACTION_CANCEL事件如何被触发?
2012-07-31 14:44
483 查看
对于这个问题,android文档的说明很简短,想看明白很难。国外一网页说的还比较详细,写在这里分享给大家:
原文是这样的:
You receive this when a parent takes possession of the motion, for example when the user has dragged enough across a list view or scroll view that it will start scrolling instead of letting you press the buttons
inside of it.
意思是这样的:
当你的手指(或者其它)移动屏幕的时候会触发这个事件,比如当你的手指在屏幕上拖动一个listView或者一个ScrollView而不是去按上面的按钮时会触发这个事件。
原文是这样的:
You receive this when a parent takes possession of the motion, for example when the user has dragged enough across a list view or scroll view that it will start scrolling instead of letting you press the buttons
inside of it.
意思是这样的:
当你的手指(或者其它)移动屏幕的时候会触发这个事件,比如当你的手指在屏幕上拖动一个listView或者一个ScrollView而不是去按上面的按钮时会触发这个事件。
相关文章推荐
- android中MotionEvent.ACTION_CANCEL事件如何被触发?
- android中MotionEvent.ACTION_CANCEL事件如何被触发?
- android中MotionEvent.ACTION_CANCEL事件如何被触发?
- android中MotionEvent.ACTION_CANCEL事件是什么意思,如何触发
- android中MotionEvent.ACTION_CANCEL事件如何被触发?
- android中MotionEvent.ACTION_CANCEL事件如何被触发?
- android事件传递机制以及onInterceptTouchEvent()和OnTouchEvent()详解三之ACTION_CANCEL事件和事件回传
- Android MotionEvent.ACTION_UP和ACTION_CANCEL的区别
- android MotionEvent.obtain模拟事件,自动触发
- android事件传递机制以及onInterceptTouchEvent()和OnTouchEvent()详解三之ACTION_CANCEL事件和事件回传
- android MotionEvent.ACTION_CANCEL情景分析
- Android的触摸事件MotionEvent event
- 【Android View事件(一)】Android常用触控类分析:MotionEvent 、 ViewConfiguration、VelocityTracker
- Android 多点触控实践解析及加入MotionEvent.ACTION_MASK的原因
- Android onTouchEvent的MotionEvent.ACTION_UP不响应
- 如何在android程序执行初始化的时候弹出一个PopupWindow 触发的事件是在初始化的时候。
- magento - 如何为某个action指定observer(或称事件event)
- Android的Button按钮,ACTION_UP事件不触发解决方案
- 多点触控事件处理 ev.getAction() & MotionEvent.ACTION_MASK
- ACTION_CANCEL事件的触发条件