# Databinding

[User Guide](https://developer.android.com/topic/libraries/data-binding) [Code Sample](https://github.com/android/databinding-samples) [Codelab](https://codelabs.developers.google.com/codelabs/android-databinding) Bind UI components in your layouts to data sources in your app using a declarative format.

> [!CAUTION]
> **Caution:** This library is in maintenance mode and will only receive critical fixes; new features are not planned. We recommend using [Jetpack Compose](https://developer.android.com/jetpack/compose) for building Android UIs. See [Compose-first](https://developer.android.com/develop/ui/compose/first) for more information.

| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |
|---|---|---|---|---|
| September 5, 2019 | [3.5.0](https://developer.android.com/jetpack/androidx/releases/databinding#3.5.0) | - | - | [3.6.0-alpha10](https://developer.android.com/jetpack/androidx/releases/databinding#3.6.0-alpha10) |

The databinding library is bundled with
[the Android Gradle plugin](https://developer.android.com/studio/releases/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
        }
    }

> [!NOTE]
> **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.

For more information about data binding,
see the guide to the [data binding library](https://developer.android.com/topic/libraries/data-binding),
and the Android Studio [release notes](https://developer.android.com/studio/releases)

## 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](https://issuetracker.google.com/issues?q=componentid:192721+status:open)
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](https://issuetracker.google.com/issues/new?component=192721&template=1096850)

See the [Issue Tracker documentation](https://developers.google.com/issue-tracker)
for more information.