1<?xml version="1.0" encoding="utf-8"?> 2<layout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:bind="http://schemas.android.com/apk/res-auto"> 4 <data> 5 <variable name="str1" type="String"/> 6 <variable name="str2" type="String"/> 7 </data> 8 <LinearLayout 9 android:orientation="vertical" android:layout_width="match_parent" 10 android:layout_height="match_parent"> 11 <TextView 12 android:set1="@{str1}" 13 android:id="@+id/text_view1" 14 android:layout_width="wrap_content" 15 android:layout_height="wrap_content" /> 16 <TextView 17 bind:set2="@{str2}" 18 android:id="@+id/text_view2" 19 android:layout_width="wrap_content" 20 android:layout_height="wrap_content" /> 21 </LinearLayout> 22</layout> 23