At Developer.Android.com, I've been reading, practicing and trying to learn about Android development. In working with some built-in activity resources available through the Android Studio, I've been trying to learn how to use and code multiple tab activities. I'm sure there is a good resource for these but I just hadn't found it yet.
My question(s):
What is the purpose of PageViewModel class? I assume I build out each UI tab through it's corresponding XML and JAVA class files, but I'm unclear on how I should use the PageViewModel class. It appears that is simply manages the calls to the separate tabs (fragments) and I leave it alone.
The built-in example I have has a "Live Data" feature... I'm not sure if that is something I need or not?
Thanks
My question(s):
What is the purpose of PageViewModel class? I assume I build out each UI tab through it's corresponding XML and JAVA class files, but I'm unclear on how I should use the PageViewModel class. It appears that is simply manages the calls to the separate tabs (fragments) and I leave it alone.
The built-in example I have has a "Live Data" feature... I'm not sure if that is something I need or not?
Thanks
Last edited: