I came across the documentation for AsyncPagedListDiffer. I'm wondering how we can call holder.clear() when holder is a RecyclerView.ViewHolder instance. Maybe they have an in-house method which accommodates this clearance functionality?
Yes, in the code sample on that page, UserViewHolder is assumed to be an extension (that you write) of RecyclerView.ViewHolder that implements additional bindTo and clear methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With