android中MotionEvent.ACTION_CANCEL事件如何被触发?
16lz
2021-12-12
对于这个问题,android文档的说明很简短,想看明白很难。国外一网页说的还比较详细,写在这里分享给大家:
原文是这样的:
You receive this when a parent takes possession of the motion, forexample when the user has dragged enough across a list view or scrollview that it will start scrolling instead of letting you press thebuttons inside of it.
意思是这样的:
当你的手指(或者其它)移动屏幕的时候会触发这个事件,比如当你的手指在屏幕上拖动一个listView或者一个ScrollView而不是去按上面的按钮时会触发这个事件。
更多相关文章
- androidのadb input使用
- Android(安卓)GestureDetector方法详解
- android textview 自动链接网址 修改默认点击事件
- [android]在上下文菜单的选中事件中获取列表选中的元素
- Android(安卓)ueventd解析
- 关于手机启动的方向,和屏幕的单,双击事件
- 一、android四种点击方式实现
- android通知栏消息
- android 触发AppWidget上控件事件来更新AppWidget