Hi all. I recently upgrade my app to support data ...
# android
b
Hi all. I recently upgrade my app to support data binding. so no more findViewById. just binding.view. I now want to move to a MVVM using ViewModels, so that I can move to LiveData. not sure (1) do both MVVM and LiveData at the same time or separately? (2) How does one begin to implement ViewModel from the old XML findViewById/binding way of doing things? Thanks all
😶 2
d
Since it is Kotlin lang slack channel, I would recommend to you to use Kotlin Flows instead of LiveData:) LiveData transformations (mappings) are done in main thread, which is not always good, also a lot of useful transformation operators are missing or not convenient to use.
b
That works also Flows instead of LiveData