1
我使用BindingMethod
here這樣@BidingMethod並不適用於方法
@BindingMethod(type = InputView.class, attribute = "android:title", method = "setTitle")
,但它顯示了錯誤
如何使用BindingMethod
?
我使用BindingMethod
here這樣@BidingMethod並不適用於方法
@BindingMethod(type = InputView.class, attribute = "android:title", method = "setTitle")
,但它顯示了錯誤
如何使用BindingMethod
?
當我將@BindingMethod放入類中時發生此問題。
所以把它放在類之上
@BindingMethods({
@BindingMethod(type = InputView.class, attribute = "app:title", method = "setTitle")
})
public class InputView extends LinearLayout {
...
}