evant / binding-collection-adapter

Easy way to bind collections to listviews and recyclerviews with the new Android Data Binding framework
Apache License 2.0
1.92k stars 255 forks source link

Refreshing data and keeping it in the original display position? #217

Closed hjzlzh123 closed 3 years ago

hjzlzh123 commented 3 years ago

Hi @evant :

Whether it supports refreshing data and keeping it in the original display position? When new data arrives, it is processed as "clear" and then "added," resulting in a change in the scrolling position. How can i resolve it.

evant commented 3 years ago

This is handled by diffUtil, check out docs to how to implement it correctly.

hjzlzh123 commented 3 years ago

Oh, thanks, I didn't notice this in the document.