| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<layout xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 |
<data> |
| 4 |
<variable name="text" type="String"/> |
| 5 |
<variable name="obj" type="android.databinding.testapp.vo.TwoWayBindingObject"/> |
| 6 |
</data> |
| 7 |
<LinearLayout |
| 8 |
android:orientation="vertical" |
| 9 |
android:layout_width="match_parent" |
| 10 |
android:layout_height="match_parent"> |
| 11 |
<EditText |
| 12 |
android:id="@+id/editText1" |
| 13 |
android:layout_width="wrap_content" |
| 14 |
android:layout_height="wrap_content" |
| 15 |
android:text="@={text}"/> |
| 16 |
<EditText |
| 17 |
android:id="@+id/editText2" |
| 18 |
android:layout_width="wrap_content" |
| 19 |
android:layout_height="wrap_content" |
| 20 |
android:text="@={obj.text}"/> |
| 21 |
</LinearLayout> |
| 22 |
</layout> |