1. Are you ready for the Galaxy S20? Here is everything we know so far!

Learning about Tabs in Android, have a couple questions

Discussion in 'Android Development' started by Guitarist, Dec 19, 2019.

  1. Guitarist

    Guitarist Newbie
    Thread Starter

    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?


    #1 Guitarist, Dec 19, 2019
    Last edited: Dec 19, 2019

    1. Download the Forums for Android™ app!



Share This Page