MVC Architecture in Android
1 min readDec 29, 2017
MVC represents Model-View-Controller
Model:
- Manage the behavior and data of the application
- Responds to requests for information about its state (usually from the view)
- Responds to instructions to change state (usually from the controller)
- Allows the views to produce updated output
View:
- Typically a user interface element
- One to one correspondence with a display surface
- Present the model to the user
- Generates the output representation to the user
Controller:
- Controls both model and view
- Accepts input from the user and instructs the model and the view to perform actions based on that input
- Update view when model changes
- Update model when user manipulate the input