Skip to content

rodrigobressan/sample_android_architecture_components

Repository files navigation

Sample Architecture Components

Build Status Codacy Badge

What is this?

Just a simple application showcasing the usage of Android Architecture Components. It does not make any usage of Dependency Injection (such as Dagger), since the purpose of it is to keep it simple :-)

Project contents

  • ViewModel, in order to show the basic behavior of keeping the state of the screen after configuration changes
  • AndroidViewModel, same as ViewModel, but using the application context
  • LiveData, in order to show how we can use the Observable pattern in order to check for new changes
  • Lifecycle, being able to track the lifecycle of our Activity/Fragment
  • Transformation, in order to perform any change (map/switchMap) in our data before returning it

Requirements

Android Studio

JDK 1.8

Android SDK

License

All code licensed under the MIT License. You are free to do whatever you want with this piece of code. Check it out the LICENSE.md file for more info.

Releases

No releases published

Packages

No packages published