-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Welcome to the DataBindingExample wiki!
This is just a example how data binding api works. You may want to visit the developer site for more description.
Guide Reference Link: https://developer.android.com/tools/data-binding/guide.html
I'll explain a little on it.
So for getting started, make sure you are using a compatible version of Android Studio. The Data Binding plugin for Android Studio requires Android 1.3.0-beta1 or higher.
To set up your application to use data binding, add data binding to the class path of your build gradle file, right below "android".
dependencies {
`classpath "com.android.tools.build:gradle:1.2.3"`
`classpath "com.android.databinding:dataBinder:1.0-rc0"`
}
In each module you want to use data binding, apply the plugin right after android plugin
apply plugin: ‘com.android.application'
apply plugin: 'com.android.databinding'
So, now you need to synchronize the project with gradle, so that it'll auto download the databinding plugin and will be ready to use it.