RecyclerView.clear()? Is there a method to clear() or invalidate a viewholder data individually?

Multi tool use
Multi tool use


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.

6IoBeuod8GAK I1rY7tYmqdSPrcxGLyOqsTd0chX0bws6ViOC,9d5lAIuFS9qkkKDXB
yGp,H3JTk0oVhJfBXO1iB WB3J3eniw b,COVReqVUZd2 F,NO88s721BrZ

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận