Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第三章点击事件的结论,第五个怎么理解? #21

Open
qingfengmy opened this issue Jun 20, 2016 · 2 comments
Open

第三章点击事件的结论,第五个怎么理解? #21

qingfengmy opened this issue Jun 20, 2016 · 2 comments

Comments

@qingfengmy
Copy link

如果View不消耗ACTION_DOWN以外的其他事件,那么这个点击事件会消失,此时父元素的onTouchEvent并不会被调用,并且当前View可以持续收到后续事件,最终这些消失的点击事件会传递给Activity处理。

@hzyxym
Copy link

hzyxym commented Jul 22, 2018

同问,测试了好多遍都无法理解。求大神指导

@hzyxym
Copy link

hzyxym commented Jul 22, 2018

测试的时候只要 MotionEvent.ACTION_DOWN里面return true;或者case MotionEvent.ACTION_UP里面不管return true or false,点击事件都会消失。跟文中描述的不一样,不理解。求解惑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants