Basic concepts of UI framework in activity

Source: Internet
Author: User
The basic concept of UI framework in activity activity is an essential part of the application, providing a visual interface to interact with the user, and how the acitivity displays the view elements and responds to event interactions. The concept of activity-related activity:activity contains a window, The window is created by calling Policymanager.makenewwindo in the activity's attach method; View: The most basic UI component that represents a rectangular area on the screen; Decorview: Is the rootview of the View in window, setting the window Window: Represents the top-level windows, manages the display of the interface, and responds to events; each activity creates a         Phonewindow object. is the interface between activity and the entire view system WindowManager: A interface, inherited from Viewmanager. The window manager of the application process; there is a implementation windowmanagerimpl; Mainly used to manage some of the window's state, properties, view additions, deletions, updates, window order, message collection and processing. Viewroot: Interaction with the Global window manager via the Iwindowsession interface: interface control and message response; Activitythread: The main thread of the application, which creates an association with the current Activity and window ; Create a WindowManager implementation class instance, add the current Decoview to WindowManager; Two implementation process framework diagram         activity on the window's creation Association process is as follows: Related class structure: Hierarchical relationship: (this Figure Online Misappropriation ... )

Basic concepts of UI framework in activity

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.