A brief discussion on the Android architecture (i)

Source: Internet
Author: User

I see a translation on the CSDN, although the final solution is to be designed according to your specific project, but the text has aroused a lot of its own resonance, the original poked here.

This is the messaging-based MVC framework He proposes:

The design idea is that even small applications have to be packaged to make it easier to expand and enhance the robustness of the application.

The view:xml itself is part of the view, but not all, and I think the definition of view is all that is maintained by the main thread of the UI, including the loading of the XML, the display and response of the control;

Model: Maintains the data module, which is an abstraction of the user control's response (such as a system configuration) or the business data is shared across the application.

Controller: The main business logic is realized, the view is only responsible for the simple control response, encapsulates the data that you know, asynchronously transmits to the controller,controller according to oneself in the state carries on the data deletion and modification, Controller can monitor the data change state and use messaging mechanism to notify the UI thread (such as modify, modify complete, etc.)

"According to this idea, we propose our own solutions."

A brief discussion on the Android architecture (i)

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.