https://github.com/rodrigobressan/sample_android_architecture_components
Project showcasing the usage of Android Architecture Components
https://github.com/rodrigobressan/sample_android_architecture_components
android android-architecture-components androidviewmodel livedata viewmodel
Last synced: 18 days ago
JSON representation
Project showcasing the usage of Android Architecture Components
- Host: GitHub
- URL: https://github.com/rodrigobressan/sample_android_architecture_components
- Owner: rodrigobressan
- License: apache-2.0
- Created: 2018-03-03T17:21:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T20:50:51.000Z (about 8 years ago)
- Last Synced: 2025-04-13T21:57:28.387Z (about 1 year ago)
- Topics: android, android-architecture-components, androidviewmodel, livedata, viewmodel
- Language: Kotlin
- Homepage:
- Size: 1.38 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sample Architecture Components
----------
[](https://travis-ci.org/bresan/android_tmdb_clean_architecture)
[](https://www.codacy.com/app/bresan/android_tmdb_clean_architecture?utm_source=github.com&utm_medium=referral&utm_content=bresan/android_tmdb_clean_architecture&utm_campaign=Badge_Grade)
#### 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](http://www.opensource.org/licenses/mit-license.php). You are free to do whatever you want with this piece of code. Check it out the LICENSE.md file for more info.