Skip to content

nemamayank/DataBinding

Repository files navigation

Data Binding

Data Binding Library is a support library that enables you to bind UI elements in your layouts to data sources in your app using a declarative style rather than programmatically.

  • Helps you to understand the binding of data through XML in your projects
  • Its exclude your boilerplate id's in your project which beautifies your project in a simple and clean way. To start using data binding on your android studio:
  • Download the library from the Support Repository in the Android SDK manager.
  • Configure your app to use data binding, add the dataBinding element to your build.gradle file in the app module, as shown below:
// Enable data binding in the app using below code in gradle
android {
    ...
    dataBinding {
        enabled = true
    }
}

alt text

About

Example of Data Binding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages