mvvm architecture Android room livedata mvc dagger2 kotlin-android mvp retrofit2 Kotlin
Need help with AndroidArchitecture?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
binaryroot

Description

Android Architecture using Google guides

126 Stars 20 Forks MIT License 36 Commits 1 Opened issues

Services available

Need anything else?

Android Architecture Kotlin + Dagger2 + Room + LiveData + Retrofit

Project contributors: Nazar Ivanchuk & Roman Havran

Summary

This sample stands on the principles of Android Architecture.

It's based on the MVC sample, splitting the application in four layers:

Diagram

Layers responsibilities

UI Controller (Activities, Fragments & Custom views)

  • Activities & Fragments
  • Observes the ViewModel
  • Keeps the UI up-to-date
  • Forwards user Actions back to the ViewModel

ViewModel

  • Prepares & keeps data for the UI
  • Includes LiveData, Observables etc.
  • Survives configuration changes
  • The gateway for the UI Controller

Repository

  • The complete data model from the App  - Provides simple data modification & retrieval APIs

Data Source

  • Provides local or network sources for data

Maintainability

ViewModel concept makes application more flexible for support

Android Arsenal

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.