Add content to mvp in android (#6474)
* Docs(android): Add MVP content * Update src/data/roadmaps/android/content/mvp@aF_xFIqTjQbENtC7pkXvJ.md --------- Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>pull/6512/head
parent
731ff23c9d
commit
1afdde1770
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
||||
# MVP or Model View Presenter |
||||
|
||||
The MVP `Model View Presenter` pattern is a derivative of the well-known MVC `Model View Controller` pattern and is one of the most popular patterns for organizing the presentation layer in Android applications. |
||||
|
||||
MVP is divided into three components: |
||||
|
||||
- `Model`: Responsible for managing the data input to the app. This can often be an Interactor or UseCase, handling the business logic and data operations. |
||||
- `View`: Takes care of updating the graphical part of the application. It acts as a passive view, only receiving data and requesting actions to be performed. |
||||
- `Presenter`: Handles all the logic related to the graphical interface that the View requests. It provides the View with the data it needs to display on the screen. |
||||
|
||||
This structure helps to create a clear separation of concerns, making your codebase more modular and easier to maintain. |
Loading…
Reference in new issue