Skip to content

entrpn/kotlin-room-databinding

Repository files navigation

Sample project using Kotlin, Room, Data Binding, LiveData and ViewModel together.

This is a sample project showing how to use Android architecture components together and written in Kotlin.

This project uses Room, LiveData, ViewModel and Data Binding. It also uses retrofit, okhttp and glide.

Master Branch

The master branch uses different tables to hold the data coming from retrofit and has relationships between them using foreign keys. When a person is deleted from the People table, the delete cascades to the other tables and deletes all information pertaining to that person.

One Table Branch

This is a much simpler architecture. It uses @Embedded annotations to create nested object models inside PeopleModel but holds all the data inside one table.

Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published