Activity -> ViewGroup -> View After a click event occurs, the event is transmitted to the Activity, then to the ViewGroup, and finally to the View. To fully understand the Android distribution mechanism, it is essential to understand:

Activity distributes click events ViewGroup distributes click events View distributes click events

In general, the event column is generated from the moment the user presses ACTION_DOWN, and there are three very important event-related methods to mention.

dispatchTouchEvent() onTouchEvent() onInterceptTouchEvent()

An event distribution diagram for an Activity

ViewGroup Event distribution diagram

View event distribution diagram

Reference: www.jianshu.com/p/38015afcd… www.jianshu.com/p/d3758eef1…