From the course: Android Development: Data Binding

Simplify your data-driven layouts - Android Tutorial

From the course: Android Development: Data Binding

Start my 1-month free trial

Simplify your data-driven layouts

- [Joe] Just about every modern Android application today has to make use of data in some way. Maybe it's an app that displays weather information, or maybe it's an app that keeps track of your prized vinyl record collection. Or maybe it's just an app that keeps track of your stock portfolio. Now, all of these apps have at least one thing in common, and that's data, and more specifically, data that is presented to and manipulated by the user. Just about every application needs to use data, so you might as well make the process as easy as possible. In this course, we're going to learn about Android data binding, one of the Android architecture components that makes it super easy to separate your applications data from the layout and avoid having to write a bunch of repetitive boilerplate code. We'll see how to enable data binding for your application and then learn about the rich data binding expression language that you use to link your data directly to your layout files. We'll also see how to bind two observable data sources so that changes in the data are automatically reflected in the layout, and how to use features like binding adapters to connect data sources to different kinds of layout attributes. Hi, I'm Joe Marini, and I've been building software professionally for some of the biggest companies in Silicon Valley for more than 30 years. Come join me in my course on Android data binding to see how you can take advantage of these features in your app.

Contents