Android research-Gui framework-simple view rendering process for Android

Source: Internet
Author: User

A gui system has several major functions to do: input (event), GDI (output, such as skia Library), widget (Basic Control + Container Control + layout Control) window (containing widgets and providing the place for drawing). With the above basic modules, you can build the basic UI. Complex mechanisms are required: event transfer mechanism, window and Widget cut mechanism, widget draw mechanism, theme mechanism, multilingual mechanism, resource management mechanism, and support mechanism for third-party libraries (typical example: OpenGL), GDI efficiency, special effect mechanism.

In the Android system, view is what we call widgets, also known as controls. View can be divided into three types: basic view, container view, and Layout View.
Typical basic views include imageview and textview;

(The basic view is responsible for displaying views in various forms)

View of the container class, such as listview, gridview, and viewgroup (the name of viewgroup is not standard and should be called containerview or groupview. In this way, it can be understood that it is a view and has the group capability );

(The container view is associated with a specific layout. It has a unique form and interface for organizing the view and has the view management function)

Layout View, such as framelayout and gridlayout (layout suffixes Layout View. Layout View must have view management capabilities, so it must be a subclass of viewgroup, that is, a subclass of the container class, the layout function is available on the basis of management)

(Layout View is used for layout, obviously)

 

This article briefly describes the simple rendering process of the android System View.

1. How to associate activity with view?

ReferenceArticle: Http://blog.csdn.net/dragondog/article/details/6455176

 

2. The first full refresh time?

3. How to actively refresh?

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.