In Android application development, we often need to pass data between fragments—i.e. from a listing fragment to a detailed fragment—to update values.
Passing data between fragments in Android is very common, and to do this task, we’ve traditionally used Interface.
But with the introduction of Android Jetpack, there’s a different way to move data between fragments. In this tutorial, we’ll take a closer look at ViewModel and see how it compares to Interface.
Continue reading Passing Data between Fragments on Android Using ViewModel