Basic rules for Android touch event delivery

Source: Internet
Author: User

  1. 1. The down event is first passed to the onintercepttouchevent () method

  2. 2.        If the viewgroup received down After event processing is complete return false move, up first viewgroup down view ontouchevent () processing.

  3. 3.       if theViewGroupof theonintercepttouchevent ()after receiving the Downafter event processing is completereturn True, then the subsequentmove, upsuch events will no longer be passed toonintercepttouchevent (), but with Downevent passed to theViewGroupof theontouchevent ()handle, note, targetViewwill not receive any events.

  4. 4.          If you end up needing to handle events for view ontouchevent () returned false view processing.

  5. 5. if the ontouchevent () of the view that eventually needs to handle the event returns true , then subsequent events will continue to be passed to the view 's ontouchevent () processing.


Basic rules for Android touch event delivery

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.