The so-called MVP (Model-view-presenter) mode. is to divide the app's structure into three layers:View-ui Display LayerThe view layer is primarily responsible for:
Provide UI interaction
Modify the UI under presenter control.
The business event is referred to presenter for processing.Attention. The view layer does not store data and does not inte
Ym -- MVP mode for Android Development (solving the coupling between View and Model), androidmvp
What is MVP? What is the relationship and difference between it and the MVC we often hear?
MVPs evolved from the classic MVC Model. Their basic ideas are the same: Controller/Presenter is responsible for logical processing, Model provides data, and View is responsible for display. As a new Model, MVPs and MVC have a major difference: in MVPs, views do not
number of developers began to study ASP. net MVC framework, I remember my best friend is one of them, and it is applied to his open-source project chsns.
MVPs are another variant of the MVC model. MVPs can be applied to WEB projects or winform projects, its convenient Testing Mechanism brings the gospel to large and complex enterprise-level applications. It is a hierarchical diagram of the MVP mode based on my understanding.
You can see that MVP has three layers: Model-
By bringing up the MVP architecture model, you might first think of its "predecessor" MVC pattern. MVC consists of model, View, and controller, requesting business judgment from the controller and then handing it over to model or view. This itself is nothing, but when applied to the Android program, you will find that the activity has served as the controller's role in the business screening, as well as the role of the view to display the interface, and sometimes as a model of the role of loadin
project can achieve a true sense of "comment" rather than "criticism" mainly, also will not appear to fool the wishy-washy situation.
In doing design reviews, our approach stems mainly from the Jared M. Spool article, "Turning from a critical review to a review." Spool's definition of comments in this article has a huge impact on my understanding of design reviews, and the value of this understanding is particularly important in the Facebook team, which makes our team's 2-hour design review pa
modelWhat is MVP?MPV has evolved from the classic MVC model, and its basic ideas are interlinked.The MVP is the abbreviation for the model, view, controller (Presenter), which represents 3 different modules in the project, respectively.Model: is responsible for processing data loading or storage, such as from the network or local database to obtain data;View: Responsible for the display of the interface data, interacting with the user;Controller (
For the MVC pattern, we can make visual UI rendering, UI processing logic and business logic defined separately in View,controller, and model.Visual UI Rendering->viewUI processing Logic->controllerBusiness logic->modelIn the MVC pattern, the interaction between the three is not strictly limited, and the analogy allows the view and model to interact directlyVariant of the MVC pattern MVPMVC is a very broad concept that does not set a strict rule between view,controller,model. So for a specific d
are all independent of presenter and ViewModel to correspond to each view.Four. MVP modeThe idea of 4.1 MVP4.2 UI Interface Interface4.3 The bridge between Presenter--model and view4.4 MVP's code structure and timing diagram4.5 MVP Model SummaryFive. MVVM modeDesign idea of 5.1 MVVM pattern5.2 MVVM Pattern Structure diagramSix. MVC, MVP, and MVVM pattern Usage Scenario SummaryFour, MVP modeMVP Mode is also
I am very grateful for the attention we have received from the previous article. Because of their own understanding of these models is also limited, for MVC,MVP,MVVM These models of comparison, is a combination of their own understanding, some places may not be accurate, the need for friends can refer to the next one to get everyone's attention, thank you very much. Because of their own understanding of these models is also limited, for these models of comparison, is a combination of their own u
What is MVP? Perhaps a lot more people know about the MVC model (model View Controller), but the Most different point between M VP and MVC is that M and V are not directlyThe correlation is also the model and the view does not have a direct relationship between the two are spaced between the presenter layer. Personal feeling this is a great design that allows the code to be fully decoupled.So we're still not talking about what the MVP is ~ ~ ~ Don't
The MVP is evolved from the classic pattern MVC, where the basic ideas are interlinked: Controller/presenter is responsible for the processing of logic, model provides data, and view is responsible for the display. As a new model, there is a significant difference between MVP and MVC: In MVP, view does not use model directly, communication between them is through presenter (Controller in MVC), all interacti
First, the MVP introduction
As the functionality of the UI creation technology grows, the UI layer also performs more and more responsibilities. In order to better subdivide view and model function, let view focus on processing data visualization and interaction with the user, while let the model only relational data processing, based on the MVC concept of the MVP (Model-view-presenter) model emerged.
The MVP model usually contains 4 elements:
(1)
first, the MVP introduction
As the functionality of the UI creation technology grows, the UI layer also performs more and more responsibilities. In order to better subdivide view and model function, let view focus on processing data visualization and interaction with the user, while let the model only relational data processing, based on the MVC concept of the MVP (Model-view-presenter) model emerged.
The MVP model usually contains 4 elements:
(1) Vie
Database Senior Engineer Training (Project implementation + Backup Recovery + foundation depth)----------------------------------------------Part IV: Oracle Video Courseware material Content List----------------------------------------------H05. Oracle DB Instance Core technical analysis-wind Brother presenter-Courseware information v0.1-password is broken. rarH06. A comprehensive analysis of Oracle monitoring network services-wind Brother speaker-Co
and background data format encapsulation, business logic processing. The advantages of a clear architecture, easy to understand and the traditional language of the MVC architecture is not a big difference, can quickly adapt to mobile application development Shortcomings MVC is not improved for mobile applications, less efficient in Android, The activity that has the controller responsibility to take into account the interface loading, appears bloated MVP
The MVP evolved from the MVC architectur
Thanks for your attention in the previous article. In comments from some friends, I hope to come up with the next article soon. This article is too late because I have limited understanding of these models. The comparison between these models is based on your own understanding. Some areas are not necessarily accurate, but only by showing your own point of view can you give a reference? You are welcome to make a brick. :)
Reading directory:
Iv. MVP Mode
4.1 MVP Thoughts
4.2 UI Interface
4.3
and writing the database, requests for data from the network, and so on.
Presenter: For Presenter layer He is the bridge between the view layer and the model layer and processes the business logic. Model and view cannot interact directly in the MVP architecture. So in the presenter layer it will get the required data from the model layer and do some proper p
MVPs evolved from the classic MVC model. Their basic ideas are the same: Controller/presenter is responsible for logical processing, model provides data, and view is responsible for display. As a new model, MVPs and MVC have a major difference: in MVPs, views do not directly use models, and the communication between them is through Presenter (Controller in MVC) all interactions occur within the
MVPIt evolved from the classic MVC model. Their basic ideas are the same: Controller/presenter is responsible for logical processing, model provides data, and view is negative.Responsibility display. As a new model, MVPs and MVC have a major difference: in MVPs, views do not directly use models, and the communication between them is through presenter.(Controller in MVC), all interactions occur within the
I. Introduction of the MVPAs UI creation technology becomes more and more powerful, the UI layer is performing more and more responsibilities. In order to better subdivide the view and model functions, let view focus on processing data visualization and interaction with the user, while the model only relational data processing, based on the MVC concept of the MVP (Model-view-presenter) model emerged. In MVP mode, there are usually 4 elements: (1)View
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.