阅读275 返回首页    go 阿里云 go 技术社区[云栖]


android中MotionEvent.ACTION_CANCEL事件如何被触发?

对于这个问题,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而不是去按上面的按钮时会触发这个事件。

最后更新:2017-04-02 16:48:06

  上一篇:go onInterceptTouchEvent和onTouchEvent调用时序
  下一篇:go android: 静态XML和动态加载XML混合使用,以及重写Layout控件