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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-29 UTC."],[],[],null,["# Databinding\n===========\n\n[User Guide](/topic/libraries/data-binding) [Code Sample](https://github.com/android/databinding-samples) [Codelab](https://codelabs.developers.google.com/codelabs/android-databinding) \nAPI Reference \n[android.databinding](/reference/android/databinding/package-summary) \nBind UI components in your layouts to data sources in your app using a declarative format. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|-------------------|-------------------------------------------------------|-------------------|--------------|-----------------------------------------------------------------------|\n| September 5, 2019 | [3.5.0](/jetpack/androidx/releases/databinding#3.5.0) | - | - | [3.6.0-alpha10](/jetpack/androidx/releases/databinding#3.6.0-alpha10) |\n\nThe databinding library is bundled with\n[the Android Gradle plugin](/studio/releases/gradle-plugin).\nYou do not need to declare a dependency on the\nlibrary, but you must enable it.\n\nTo enable data binding, set the `dataBinding` build option to `true` in your\nmodule's `build.gradle` file, as shown below: \n\n android {\n ...\n buildFeatures {\n dataBinding true\n }\n }\n\n| **Note:** You must enable data binding for all modules that depend on libraries that use data binding, even if the module doesn't directly use data binding.\n\nFor more information about data binding,\nsee the guide to the [data binding library](/topic/libraries/data-binding),\nand the Android Studio [release notes](/studio/releases)\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:192721%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=192721&template=1096850)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information."]]