What is Repository pattern in MVVM Android?

What is Repository in Android’s MVVM architecture? Repository is a class which purpose is to provide a clean API for accessing data . What that means is that the Repository can gather data from different data sources(different REST APIs, cache, local database storage) and it provides this data to the rest of the app.

Read more

Why MVVM is better than MVP in android?

Difference Between MVP and MVVM Design Pattern It resolves the problem of having a dependent View by using Presenter as a communication channel between Model and View . This architecture pattern is more event-driven as it uses data binding and thus makes easy separation of core business logic from the View.

Read more