Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

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

Open
KaelThasWang0919 opened this issue Mar 21, 2017 · 0 comments
Open

Comments

@KaelThasWang0919
Copy link

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

<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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant