나의 플랫폼/안드로이드
[Android][DataBinding] application namespace for attribute will be ignored
GsBOB
2016. 8. 9. 10:51
혹시 DataBinding에서 BindingAdapter를 사용하게 되면 아래와 같은 Warning이 뜬다.
application namespace for attribute will be ignored
무시 해도 동작이 되는데는 문제가 없다.
이유는 바인딩 명칭을 잘못 해서 그런 것이다.
## 올바른 형태
@BindingAdapter({"iconRes"})
## 경고가 뜨는 상태
@BindingAdapter({"bind:iconRes"})
"bind:" 부분을 제거 시키면 Warning 문구가 뜨지 않을 것이다.
참고하세요.