MasteringAndroidDataBinding icon indicating copy to clipboard operation
MasteringAndroidDataBinding copied to clipboard

非根节点中include引发奔溃的问题已经解决了

Open KaelThasWang0919 opened this issue 7 years ago • 0 comments

这是我的代码,测试正常运行

<data classs="ActivityDataBinding">

    <variable
        name="user"
        type="com.kaelthas.demo.bean.User"/>
</data>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@{user.userName}"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@{user.passWord}"/>

    <Button
        android:id="@+id/btn"
        android:text="点击改变信息"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <include layout="@layout/test"/>
    </LinearLayout>
</LinearLayout>

KaelThasWang0919 avatar Mar 21 '17 09:03 KaelThasWang0919