onClearView

open override fun onClearView(holder: ViewHolderState<Any>)(source)

Same as onViewRecycled, but for the purpose of cleaning the view of any relevant data.

If an item view has large or expensive data bound to it such as large bitmaps, this may be a good place to release those resources.

Use this with clearImage