epoxy icon indicating copy to clipboard operation
epoxy copied to clipboard

How to force rebinding view?

Open mobilekosmos opened this issue 2 years ago • 1 comments
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?

mobilekosmos avatar Feb 16 '23 04:02 mobilekosmos

You can create an EpoxyModelClass and add that onClick functionality in the override fun setDataBindingVariables(binding: ViewDataBinding?)

ha-0797 avatar Feb 24 '23 14:02 ha-0797