RecyclerView.clear()? Is there a method to clear() or invalidate a viewholder data individually?
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.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.