Day111 — MVP
1 min readOct 3, 2019
Let’s learn about MVP.
An important point to notice is that the presenter has no code that uses the Android APIs.
MVP
- View and Presenter is one-to-one coupling.
- View has a Presenter reference, and Present has a View reference
- can use LiveData
MVVM
- View and ViewModel is one-to-many coupling.
- View has a ViewModel reference, but ViewModel does not have reference to View
- use LiveData