Chapter 3 Bind Data with ViewModels

Kotlin and Android Development featuring Jetpack — by Michael Fazio (22 / 125)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Summary and Next Steps | TOC | Create a ViewModel (Pick Players) 👉

In the previous chapter, we created two views: PickPlayersFragment and GameFragment. While they look nice right now, they don’t do much yet. We still need to bring both screens to life, which we can do with data binding and ViewModel classes. We’re going to create ViewModel classes for both views and get things connected up so we can then move on to the game logic.

👈 Summary and Next Steps | TOC | Create a ViewModel (Pick Players) 👉

Kotlin and Android Development featuring Jetpack by Michael Fazio can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.