Is there any material for MVVM, Kotlin and LiveDat...
# android
s
Is there any material for MVVM, Kotlin and LiveData used together. I’m jumping between * https://developer.android.com/topic/libraries/architecture/guide.html * https://github.com/googlesamples/android-architecture/tree/todo-mvvm-live-kotlin/todoapp/ * x number of Medium posts It’s confusing me more than helping me
n
Google CodeLabs are good for MVVM and LiveData. And Kotlin itself never confuses. 🙂
👍 1
w
I recently wrote a sample app using MVVM and LiveData https://github.com/waah42/github-sample/tree/use-sealed-class and of-cource kotlin, ther ViewModelProvider part is simple without caching not similar to what you will find in Google Samples. Rest should be ok. Feel free to ask something specific if you need more help.
s
Thanks, I’ll checkout CodeLabs and your repo @waqas
a
The paging lib samples do this. I also have a sample app I've been working on (to demonstrate paging for a blog post that isn't published yet) which uses those: https://github.com/adammc331/pokedex