Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 394efb49 authored by Sreevani Sreejith's avatar Sreevani Sreejith Committed by Android (Google) Code Review
Browse files

Merge "docs: Updated the location of the build.gradle file where data binding...

Merge "docs: Updated the location of the build.gradle file where data binding element is added. Added additional information on data binding configuration." into mnc-docs
parents 3b9f773d 0cd62034
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -193,7 +193,10 @@ repository in the Android SDK manager. </p>

<p>
To configure your app to use data binding, add the <code>dataBinding</code> element to your
top-level <code>build.gradle</code> file with the following configuration: </p>
<code>build.gradle</code> file in the app module.
</p>

 <p>Use the following code snippet to configure data binding: </p>

<pre>
android {
@@ -204,6 +207,9 @@ android {
}
</pre>

<p>If you have an app module that depends on a library which uses data binding, your app module
 must configure data binding in its <code>build.gradle</code> file as well.</p>

<p>Also, make sure you are using a compatible version of Android Studio.
<strong>Android Studio 1.3</strong> adds the code-completion and layout-preview
support for data binding.</p>