From 8dd7eea3078f3c725b07865b9cb3f59fcbccff90 Mon Sep 17 00:00:00 2001 From: Cheryl Potter Date: Mon, 4 Apr 2016 17:10:06 -0700 Subject: [PATCH] docs: Data Binding 2.0 updates b/26892478 Change-Id: I78360cb156984468d5ee387575f573c8e5fc9fe1 --- docs/html/tools/data-binding/guide.jd | 41 ++++++++++++++++++++------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/docs/html/tools/data-binding/guide.jd b/docs/html/tools/data-binding/guide.jd index b57fba7f822f4..8bbd833e1589e 100644 --- a/docs/html/tools/data-binding/guide.jd +++ b/docs/html/tools/data-binding/guide.jd @@ -1655,13 +1655,31 @@ public static ColorDrawable convertColorToDrawable(int color) {

Android Studio Support for Data Binding

-Android Studio supports syntax highlighting of data binding expressions, and flags any expression -language syntax errors in the editor. -

+Android Studio supports many of the code editing features for data binding code. +For example, it supports the following features for data binding expressions:

+ + +

Note: Arrays and a +generic type, such as the {@link +android.databinding.Observable} class, might display +errors when there are no errors.

+

-The Preview pane displays default values for data binding expressions if provided. In the following -example excerpt of an element from a layout XML file, the Preview pane displays the -{@code PLACEHOLDER} default text value in the TextView. +The Preview pane displays default values for data binding expressions if +provided. In the following +example excerpt of an element from a layout XML file, the Preview pane displays +the {@code PLACEHOLDER} default text value in the TextView.

@@ -1671,8 +1689,11 @@ example excerpt of an element from a layout XML file, the Preview pane displays
 

-If you need to display a default value during the design phase of your project, you -can also use tools attributes instead of default expression values, as described in - +If you need to display a default value during the design phase of your project, +you can also use tools attributes instead of default expression values, as +described in + Designtime Layout Attributes. -

\ No newline at end of file +

+