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