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

NameCard 类和 activity_attrribute_setters.xml 文件有误 #49

Open
taowu750 opened this issue Dec 18, 2017 · 0 comments
Open

NameCard 类和 activity_attrribute_setters.xml 文件有误 #49

taowu750 opened this issue Dec 18, 2017 · 0 comments

Comments

@taowu750
Copy link

在 activity_attribute_setters.xml 文件中,这样使用了 NameCard 类:
<com.liangfeizc.databinding.view.NameCard
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginEnd="@dimen/largePadding"
android:layout_marginLeft="@dimen/largePadding"
android:layout_marginRight="@dimen/largePadding"
android:layout_marginStart="@dimen/largePadding"
android:gravity="center"
app:age="27"
app:firstName="@{@string/firstName}"
app:lastName="@{@string/lastName}"/>
经过我的测试发现,只有 app:age 属性能够使用,app:firstName 属性和 app:lastName 属性会报错。

我将 style.xml 中的 NameCard style 改为如下形式就可以正常使用了:




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