The life cycle of Android_view

Source: Internet
Author: User

onfinishinflate () triggers onmeasure when all the child controls in the view are mapped to XML (int,int) determines the size of all child elements OnLayout (Boolean,int,int,int,intTrigger onsizechanged When view assigns the size and position of all child elements (int,int,int,intwhen the size of the view changes, the details of the OnDraw (Canvas) View render content are triggered OnKeyDown (intkeyevent) has a button pressed to trigger OnKeyUp (int, KeyEvent) trigger Ontrackballevent (motionevent) trackball event ontouchevent (motionevent) Touch event onfocuschanged When the button is pressed and bounced (Boolean,int, Rect) triggers onwindowfocuschanged when view acquires or loses focus (BooleanTrigger Onattachedtowindow When a window contains a view that gets or loses focus () triggers when view is attached to a window Ondetachedfromwindow () Triggers when view leaves the attached window.  Android123 hints that the method and Onattachedtowindow () are the opposite. Onwindowvisibilitychanged (intTriggers when the visible view that is contained in the window has changed

The life cycle of 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.