关于@BindingAdapter自定义方法不回调,不起作用的解
2018-03-31 本文已影响0人
DrChenZeng
@BindingAdapter自定义RecyclerView setAdpater或者itemOncilck不起作用,原因:自定义的方法格式写错了xml是不会报错的 :

传入对象到xml

xml 声明

设置(这样设置是不会报错的但是也不会生效)

正确的方法:(添加了@{}的符号)

@BindingAdapter自定义RecyclerView setAdpater或者itemOncilck不起作用,原因:自定义的方法格式写错了xml是不会报错的 :
传入对象到xml
xml 声明
设置(这样设置是不会报错的但是也不会生效)
正确的方法:(添加了@{}的符号)