claykabongok / MVVM_App

The following is a sample android project on how to use the Model View ViewModel (MVVM) architecture with Retrofit which is a type-safe HTTP client for Android and Java and JSONPlaceholder which is a fake online REST API for testing and prototyping.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android MVVM Architecture app

The following is a sample android project on how to use the Model View ViewModel (MVVM) architecture with Retrofit which is a type-safe HTTP client for Android and Java and JSONPlaceholder which is a fake online REST API for testing and prototyping.

The MVVM architecture is the recommended architecture for developing android application. MVVM provides the following benefits:

  1. Separation of concerns which enables developers to write maintainable code.
  2. Survive configuration changes (such as screen rotations) which improves user experience

The network request returns a list of users which is displayed in a RecyclerView as illustrate in the demo bellow.

Concepts used in this Application

Application Demo:

Demo screen

About

The following is a sample android project on how to use the Model View ViewModel (MVVM) architecture with Retrofit which is a type-safe HTTP client for Android and Java and JSONPlaceholder which is a fake online REST API for testing and prototyping.

License:MIT License


Languages

Language:Java 100.0%