With the stabilization of Android Architecture Components I started updating all my basic ViewModels to the new implementation ofViewModel. In my understanding,
ViewModel
For androidx will be:
androidx.lifecycle.MutableLiveData
... ...
And for Kotlin:
val myStr = MutableLiveData() ... binding.apply { setLifecycleOwner(this) this.myString = myStr }
Good luck! :)