-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用viewbind时,如何在使用xml布局的自定义ViewGroup中使用呢 #26
Comments
Binding/app/src/main/java/com/hi/dhl/demo/binding/viewbind/ViewBindCustomView.kt Lines 36 to 39 in 7adf844
|
你好,demo和我描述的情况不太一致,我的自定义View的根布局就是merge标签,这样我的merge的Binding没有可以绑定的对象 |
已经修复,请升级到 1.1.3 的版本,即可
详细的 Demo 示例如下所示。 Binding/app/src/main/java/com/hi/dhl/demo/binding/viewbind/ViewBindCustomView.kt Lines 26 to 30 in f3de58d
|
感谢作者 |
自定义ViewGroup布局名称
layout_empty_tip
,根标签使用了<merge>
,声明了
private val binding: LayoutEmptyTipBinding by viewbind()
但是运行报错了
看了下应该是反射没找到inflate方法
但是不知道怎么解决
The text was updated successfully, but these errors were encountered: