MVC mode of Android GUI architecture

Source: Internet
Author: User
1. Android UI Framework

Like other Java UI frameworks, the Android UI Framework is single-threaded and event-driven , organized in an MVC pattern .

2. Mvc mode

M:model is the core of the application, which is what the application really wants to do.

V:view, mainly responsible for rendering the interface. All view objects in the entire application interface are organized by an object tree. The root node of this object tree is the application window. The UI framework typically iterates through the View object tree in order to render it on a view-by-object basis.

C:controller is responsible for responding to external actions and interacting directly with the user.

3. Other

(1) All UI basic components, such as buttons and text boxes, are implemented simultaneously with the view and controller. However, views and controllers are never directly interacting.

(2) The Android UI Framework is single-threaded and avoids the synchronization of state between the view and the controller, guaranteeing the atomicity of the UI interface callback.

(3) cannot perform long tasks in the event handler, otherwise it will cause the UI interface to die and should be delegated to another thread.

MVC mode of Android GUI architecture

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.