mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-09 10:46:52 +02:00
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>
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user