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
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user