FirebaseUI-Android icon indicating copy to clipboard operation
FirebaseUI-Android copied to clipboard

RecyclerView - refresh only single item

Open Noiling opened this issue 3 years ago • 0 comments

I read in an old post, that you do not support payloads inside the onbindviewholder. I am having a nested recyclerview with a vertical and horizontal list. If an item changed, I used to tell the adapter through the payloads which item should be updated. Now it calls "datasetchanged" (done by the listener) and refreshes the whole adapter, causing my views immediately to jump to the left.

Is there another way to avoid this issue? Maybe something like "notifyitemchanged"?

Noiling avatar Mar 29 '22 20:03 Noiling