미분류
DataBindingComponent 사용하기
DataBindingComponent란? DataBindingComponent는 BindingAdapter에 대한 getter를 포함하는 인터페이스다. DataBindingComponent를 구현하는 클래스는 반드시 하나이상의 메서드를 가져야한다. 메서드의 이름은 접두어 get과 @BindingAdapter 메서드를 포함하는 클래스 또는 인터페이스의 이름의 합성어여야한다. 예를들어 @BindingAdapter 메서드를 가지고 있는 클래스의 이름이 ClickBinding이라면 DataBindingComponent구현체가 갖는 메서드의 이름은 getClickBinding()이 된다. 더보기…