Android Architecture(MVC, MVP and MVVM)
To make our Android application easy to extend, modify, refactor, test or even just read it, the architecture of the application is very important. For sure we can’t have a single class MainApplication or MainActivity and put everything inside, it will be a nightmare to just read the code and understand. There are three main architectures to use in Android to build our application and gives us power to do all operations we mentioned above: Model-View-Controller(MVC)
, Model-View-PResenter(MVP)
and Model-View-VIewModel(MVVM)
. Let’s talk about them one by one.