The current understanding:
1. When the button is clicked, the event that is captured in turn is Down,move,up
2. When up, the event stream is processed to the Click event
3.
Activity---dispatchtouchevent---down
Rtlayout---dispatchtouchevent---down
Rtlayout---onintercepttouchevent---down
Rtbutton---dispatchtouchevent---down
Rtbutton---onTouch---down
Rtbutton---ontouchevent---down
Interpretation: First into the activity event distribution process, the Super method will be distributed to--
Dispatch method for----next-level view
------Dispacth method to enter the interceptor again
----If the interceptor returns True, it indicates that running through
----now go to the next level of dispatch
At this point, the underlying view has been reached, with touch and TouchEvent in dispatch, and the clicked event if the up type is performed
If the result returned by TouchEvent is False (the system defaults to false), then the dispatch result is false, indicating that the event was not
Consumption, then to the upper level of dispatch continue to deal with the implementation of touch, touchevent consumption, and so on ...
There's also a long press event delivery problem???
and the interception mode of inquiry???
Reference: http://www.infoq.com/cn/articles/android-event-delivery-mechanism/
Research on the transmission mechanism of Android events