Mvvm mode MVP on Android

Source: Internet
Author: User

About the design pattern, MVC is used in iPhone development, while MVP (check: MVP on Android) is used in Android ). Mvvm:

Mvvm:

M: model, data model, can be simply understood as a traditional data entity, but in fact the model will be appliedProgramProvide data.
V: view, that is, the UI interface we see
Viewmodel:ViewmodeL. Visual Model is the main logical implementation, which is similar to the control of MVC

 

 

Mvvm is most suitableDeveloping the WPF/siverlight data driver type.The UI and logic implementation are completely isolated, and the interaction between the two is completely performed through the data binding mechanism. This advantage is obvious
1. UI logic separation facilitates function expansion andCodeMaintenance,The logic Code does not need to be related to the UI design and layout. When the UI changes, the viewmodel does not need to be changed.
2,Developers do not need to do the UI when writing programs, but designers can useMicrosoft Expression blend 4+ Design all UIS without writing any code

 

 

 

Because you have no specific project experience, you can only get a rough idea from the introduction.

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.