Я получаю сообщение об ошибке:
Код: Выделить всё
If a binding adapter provides the setter, check that the adapter is annotated correctly and that the parameter type matches.
Open File"
Это мой BindingAdapter:
Код: Выделить всё
@BindingAdapter("listData")
fun bindRecyclerView(recyclerView: RecyclerView,
data: List?) {
val adapter = recyclerView.adapter as PhotoGridAdapter
adapter.submitList(data)
}
Код: Выделить всё
Код: Выделить всё
val properties: LiveData
Да, я добавил плагин «kotlin-kapt», У меня есть еще один BindingAdapter, который работает нормально.
Подробнее здесь: https://stackoverflow.com/questions/672 ... ycler-view