[Add] Android roadmap: Docs MVVM and MVC (#6519)
* [Add] Docs MVVM and MVC * [Change] Docs formattedpull/6520/head^2
parent
53d82725d2
commit
c380a85db6
2 changed files with 28 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
# MVC or Model View Controller |
||||||
|
|
||||||
|
MVC or `Model View Controller` is a software design pattern commonly used for developing user interfaces that divides the related program logic into three interconnected components. |
||||||
|
|
||||||
|
Components: |
||||||
|
|
||||||
|
- `Model`: The internal representations of information. This can often be an Interactor or UseCase |
||||||
|
- `View`: The interface that presents information to and accepts it from the user |
||||||
|
- `Controller`: The controller contains logic that updates the model and/or view in response to input from the users of the app. |
||||||
|
|
||||||
|
Visit the following resources to learn more: |
||||||
|
|
||||||
|
- [@article@MVC](https://developer.mozilla.org/en-US/docs/Glossary/MVC) |
||||||
|
- [@article@Model–view–controller](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) |
@ -0,0 +1,14 @@ |
|||||||
|
# MVVM |
||||||
|
|
||||||
|
The `Model-View-ViewModel` (MVVM) pattern is a software architectural pattern commonly used in UI development. It is designed to separate the concerns of an application, making the code more modular, testable, and maintainable. |
||||||
|
|
||||||
|
Components: |
||||||
|
|
||||||
|
- `Model`: Refers either to a domain model, which represents real state content (an object-oriented approach), or to the data access layer, which represents content. |
||||||
|
- `View`: The view is the structure, layout, and appearance of what a user sees on the screen. |
||||||
|
- `View model`: The view model is an abstraction of the view exposing public properties and commands. The view model has been described as a state of the data in the model. |
||||||
|
|
||||||
|
Visit the following resources to learn more: |
||||||
|
|
||||||
|
- [@article@Android Developers: View Model](https://developer.android.com/topic/libraries/architecture/viewmodel) |
||||||
|
- [@article@Wikipedia](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel) |
Loading…
Reference in new issue