Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Course
    • Libraries: If you want this course, consider one of these libraries.
    • Core Tech

MVVM & Nested Fragments/Views - ViewModel Contracts

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

droidcon SF - Pluralsight course - MVVM & Nested Fragments/Views - ViewModel Contracts
droidcon SF
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.

Table of contents

About the author
droidcon SF - Pluralsight course - MVVM & Nested Fragments/Views - ViewModel Contracts
droidcon SF

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 access now

Sign up to get immediate access to this course plus thousands more you can watch anytime, anywhere.

Get started with Pluralsight