Cannot find the setter for attribute with parameter

前端 未结 7 2183
轮回少年
轮回少年 2020-12-18 18:52

I am working on DataBinding with BindingAdapter. Here is my custom method.

@BindingAdapter(\"{bind:fadevisible}\")
public static vo         


        
7条回答
  •  [愿得一人]
    2020-12-18 18:55

    Your @BindingAdapter definition looks a little bit odd to me

    @BindingAdapter("{bind:fadevisible}")
    

    This is not the same like

    @BindingAdapter({"bind:fadevisible"})
    

    or

    @BindingAdapter("bind:fadevisible")
    

    which should work perfectly fine.

提交回复
热议问题