Distribution Event: Dispatchtouchevent
Truncation event:intercepttouchevent
Touch Event: OnTouch
The parent view's distribution event returns TRUE, the parent view handles touch event events, the parent view touch event returns false, is handled by the activity where it is located, and returns True, and can still receive touch events;
The parent view's distribution event returns false, truncating the event trigger;
Truncation events return true, handle touch events on their own, and do not leave the child view to handle;
Truncation event returns false, child view distribution event;
Truncation event false, processing event true, child view processing event is true, parent view can receive events but not process, sub view processing;
Truncation event false, handling event true, child view processing event false, parent view processing, child view not processing;
Truncation event true, which handles event true, the parent view handles the event, and the child view is not processed;
Truncate event true, handle event false, parent view is also not handled by the activity where the event is handled;
This article is from "Hjh BK" blog, please make sure to keep this source http://hjhit.blog.51cto.com/8318005/1538010