epoxy
epoxy copied to clipboard
How to force rebinding view?
trafficstars
I have list items with clickable icons, onClick I replace the icon by a progress view, the problem is how do I communicate to the listItem that the progress should reset? If I call requestModelBuild() that does nothing because the list item itself doesn't change, so I cannot force rebinding the view?
You can create an EpoxyModelClass and add that onClick functionality in the override fun setDataBindingVariables(binding: ViewDataBinding?)