From 0cd620342574d6c42f84603371b66953fe5fb39b Mon Sep 17 00:00:00 2001
From: sreevanis
To configure your app to use data binding, add the dataBinding element to your
-top-level build.gradle file with the following configuration:
build.gradle file in the app module.
+
+
+ Use the following code snippet to configure data binding:
android {
@@ -204,6 +207,9 @@ android {
}
+If you have an app module that depends on a library which uses data binding, your app module
+ must configure data binding in its build.gradle file as well.
Also, make sure you are using a compatible version of Android Studio. Android Studio 1.3 adds the code-completion and layout-preview support for data binding.