Skip to content
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

防手抖自定义点击事件报错 #46

Closed
chigang opened this issue Apr 27, 2019 · 1 comment
Closed

防手抖自定义点击事件报错 #46

chigang opened this issue Apr 27, 2019 · 1 comment

Comments

@chigang
Copy link

chigang commented Apr 27, 2019

android:onClick这个方法没事
但是 binding:onClickCommand老是报错

<!--   binding:onClickCommand="@{viewModel.loginOnClickCommand}"-->
<TextView
    binding:onClickCommand="@{viewModel.loginOnClickCommand}"
    android:gravity="center"
    android:padding="10dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Hello World!"

    />

Found data binding errors.
****/ data binding error ****msg:Cannot find the setter for attribute 'binding:onClickCommand' with parameter type me.goldze.mvvmhabit.binding.command.BindingCommand on android.widget.TextView.
file:E:\MyApplication\app\src\main\res\layout\activity_main.xml
loc:17:34 - 17:62
****\ data binding error ****

@goldze
Copy link
Owner

goldze commented Apr 28, 2019

@chigang 看看是不是你android.support版本没有统一

@goldze goldze closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants