Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

MVVM & Nested Fragments/Views - ViewModel Contracts

Droidcon SF 2019 | MVVM & Nested Fragments/Views - ViewModel Contracts | Marcos Paulo Damesceno and Bret Erickson

Intermediate
23m
(1)

Created by droidcon SF

Last Updated Jan 07, 2021

Course Thumbnail
  • Course

MVVM & Nested Fragments/Views - ViewModel Contracts

Droidcon SF 2019 | MVVM & Nested Fragments/Views - ViewModel Contracts | Marcos Paulo Damesceno and Bret Erickson

Intermediate
23m
(1)

Created by droidcon SF

Last Updated Jan 07, 2021

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

As smartphones get more powerful with bigger screens, the complexity of tasks that people want to be able to do with them follows the same growth. Fragments are making a comeback, combined with LiveData and ViewModels. As you adopt these architecture components into your apps, how can you build support for complex use cases with multiple fragments on screen? Should each fragment have a ViewModel? What about custom views? ViewModel Contracts propose the idea of having fragments (and potentially custom views) declare a ViewModel and LiveData via interface to abstract out all of the communication details between nested fragments and their parents. In this talk, Marcos Paulo Damesceno and Bret Erickson explain how to implement them, how architecture components deal with ViewModels, what ViewModelFactories are, and how you can reuse them.

MVVM & Nested Fragments/Views - ViewModel Contracts
Intermediate
23m
(1)
Table of contents

About the author
droidcon SF - Pluralsight course - MVVM & Nested Fragments/Views - ViewModel Contracts
droidcon SF
68 courses 4.3 author rating 12 ratings

droidcon SF is where the industry's leading Android experts converge to support the Android platform and create a strong network for developers and companies.

Get started with Pluralsight