2016-11-14 4 views
1

には適用できない私は、この@BidingMethodは方法

@BindingMethod(type = InputView.class, attribute = "android:title", method = "setTitle") 

ようBindingMethodhereを使用していますが、それは

enter image description here

どのように私はBindingMethodを使用することができ、エラーを示して?

答えて

1

この問題は、@ BindingMethodをクラス内に配置したときに発生しました。
クラスの上に置きます。

@BindingMethods({ 
     @BindingMethod(type = InputView.class, attribute = "app:title", method = "setTitle") 
}) 
public class InputView extends LinearLayout { 
    ... 
}