From 0cd620342574d6c42f84603371b66953fe5fb39b Mon Sep 17 00:00:00 2001 From: sreevanis Date: Tue, 3 Nov 2015 09:57:57 -0800 Subject: [PATCH] docs: Updated the location of the build.gradle file where data binding element is added. Added additional information on data binding configuration. Bug: 25347374 Change-Id: Icd1c04e07cf7b17c016cddda7edf688c00fa877c --- docs/html/tools/data-binding/guide.jd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/html/tools/data-binding/guide.jd b/docs/html/tools/data-binding/guide.jd index 7d20b6afcf8a1..9629bb022201d 100644 --- a/docs/html/tools/data-binding/guide.jd +++ b/docs/html/tools/data-binding/guide.jd @@ -193,7 +193,10 @@ repository in the Android SDK manager.

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.