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?

    Thanks
     

    Advertisement

    #1 Guitarist, Dec 19, 2019
    Last edited: Dec 19, 2019
Loading...
Similar Threads - Learning Tabs Android
  1. violetadelijevic1970
    Replies:
    1
    Views:
    266
  2. Tim Nichols
    Replies:
    8
    Views:
    720
  3. notableuser
    Replies:
    18
    Views:
    1,415
  4. Ant01
    Replies:
    8
    Views:
    704
  5. Scuffedbots
    Replies:
    0
    Views:
    170
  6. Dev2016
    Replies:
    1
    Views:
    467
  7. Trinh Cong Minh
    Replies:
    11
    Views:
    519
  8. Rajesh4games
    Replies:
    0
    Views:
    343
  9. FollowingSeas
    Replies:
    0
    Views:
    267
  10. humanMusic
    Replies:
    0
    Views:
    763

Share This Page

Loading...