2023-07-23发表2024-05-24更新笔记 / Android3 分钟读完 (大约496个字)View 的事件分发事件分发的伪代码 12345678910111213boolean dispatchTouchEvent(MomentEvent ev){ boolean consume = false; if(onInterceptTouchEvent(ev)){ //该 View 进行拦截 consume = onTouchEvent(ev); }else{ consume = child.dispatchTouchEvent(ev); } returen consume;}阅读更多