"Android Interface Effect 46" Custom view frequently processed callback method

Source: Internet
Author: User

Onfinishinflate () triggers when all child controls in view are mapped to XML

onmeasure (int, int) determines the size of all child elements

OnLayout (boolean, int, int, int, int) triggered when view allocates the size and position of all child elements

onsizechanged (int, int, int, int) triggered when the size of the view changes

OnDraw (Canvas) View details of rendered content

OnKeyDown (int, keyevent) has a button pressed and then triggered

onKeyUp (int, keyevent) triggers when the button is pressed and bounced

Ontrackballevent (motionevent) trackball Event

Ontouchevent (motionevent) Touch screen Event

Onfocuschanged (boolean, int, Rect) triggers when view Gets or loses focus

Onwindowfocuschanged (Boolean) Triggers when a window contains a view that gets or loses focus

Onattachedtowindow () Triggers when view is attached to a window

Ondetachedfromwindow () Fires when view leaves an attached window, which is the opposite of Onattachedtowindow ().

onwindowvisibilitychanged (int) triggers when the visible view that is contained in the window has changed

"Android Interface Effect 46" Custom view frequently processed callback method

Related Article

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.