Introduction

With the release of Android Studio 1.3, announced at Google I/O 2015, the Data Binding Library was introduced. The Data Binding Library allows you to write declarative layouts and minimize boilerplate code necessary to bind your application logic and layouts. More information about this library can be found in the Data Binding Guide.

Essentially, this library allows you to bind values of an object directly to views in your layout. For example, if you have a POJO(Plain Old Java Object) called User with a field called name, you could annotate a TextView's text attribute with @{user.name} to have that value inserted into your view when the layout loads. The Data Binding Library allows you to write expressions to set attribute values within your layouts.

Features