Google is committed to advancing racial equity for Black communities. See how.

Databinding

Bind UI components in your layouts to data sources in your app using a declarative format.
Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
September 5, 2019 3.5.0 - - 3.6.0-alpha10

The databinding library is bundled with the Android Gradle plugin. You do not need to declare a dependency on the library, but you must enable it.

To enable data binding, set the dataBinding build option to true in your module's build.gradle file, as shown below:

android {
    ...
    buildFeatures {
        dataBinding true
    }
}

For more information about data binding, see the guide to the data binding library, and the Android Studio release notes

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.