Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view must have a tag #27

Open
Czdzdz opened this issue Dec 2, 2022 · 4 comments
Open

view must have a tag #27

Czdzdz opened this issue Dec 2, 2022 · 4 comments

Comments

@Czdzdz
Copy link

Czdzdz commented Dec 2, 2022

override fun onItemBind(
itemHolder: DslViewHolder,
itemPosition: Int,
adapterItem: DslAdapterItem,
payloads: List
) {
super.onItemBind(itemHolder, itemPosition, adapterItem, payloads)
ItemViewBindingItemBinding.bind(itemHolder.itemView).apply{
...
}
}

@Czdzdz
Copy link
Author

Czdzdz commented Dec 2, 2022

var itemViewBindingItemBinding: ItemViewBindingItemBinding? = null

override fun onItemBind(
itemHolder: DslViewHolder,
itemPosition: Int,
adapterItem: DslAdapterItem,
payloads: List
) {
super.onItemBind(itemHolder, itemPosition, adapterItem, payloads)
itemViewBindingItemBinding = itemViewBindingItemBinding ?: ItemViewBindingItemBinding.bind(itemHolder.itemView)

databinding.bind(itemHolder.itemView).apply{
...
}

}

@Czdzdz Czdzdz closed this as completed Dec 2, 2022
@Czdzdz Czdzdz reopened this Dec 2, 2022
@angcyo
Copy link
Owner

angcyo commented Dec 5, 2022

DataBinding is not currently supported.

@Czdzdz
Copy link
Author

Czdzdz commented Dec 5, 2022 via email

@angcyo
Copy link
Owner

angcyo commented Dec 5, 2022

have fun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants