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