Event distribution mechanism for Android view

Source: Internet
Author: User

The event distribution mechanism for view events is an important part of Android, especially in the process of customizing the view, and if you don't understand this piece in depth, then the view will be more or less problematic, and this article is not as lengthy as other articles, But to learn the process of the knowledge point of their own record. It is not necessary to write an article about an event mechanism, because it is so much that there is no need to reinvent the wheel.

The first Contact event distribution mechanism is probably the two articles in Guo Dashin's blog. The Android event distribution mechanism fully resolves, taking you from the source point of view thoroughly understanding (on), the Android event distribution mechanism completely parse, take you from the source point of view thoroughly understand (under), Take you from the point of view of the source code to read through its internal implementation, the first time there are some things to see foggy. Then came to love Brother's Custom View series article blog address, the custom view has a whole control, plus his column of two events related to the blog, the event mechanism has a new understanding.

However, even if you read through the above mentioned article, today understand its mechanism, after a period of time back, inevitably will forget some of the content, and have to see so long article, again see so long article looked a little do not want to see. Later in the Android Open source project source code parsing--view event delivery found the summary of this knowledge, it must be said, as mentioned in the article, this is a I have seen the distribution of events the clearest explanation. The process of learning the event distribution mechanism is thus generated, as shown below.

    1. Android Open Source project source code parsing--view event delivery
    2. Aigestudio--android Event Distribution Fully resolved why is she
    3. Aigestudio--android Event distribution fully resolved events come from
    4. Guolin--android event distribution mechanism fully parse, take you from the source point of view of the thorough understanding (the)
    5. Guolin--android event distribution mechanism fully parse, take you from the source point of view thoroughly understand (bottom)
    6. Android Open Source project source code parsing--view event delivery
    7. Mastering the Android Touch System

We see that the 6th is back to the 1th, this is why, when you follow the 1-5-point study, you go back to the 1th, you will find that the whole idea is through, the original event mechanism is such a matter. The last 7th, that is, the 6th of the original English, interested students to see.

The article does not have a bit of their own things, mainly for students who want to learn the mechanism of the event to provide a shortcut.

Event distribution mechanism for Android view

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.