posted 5 years ago
I have this code below which uses the DiffUtil.calculateDiff between two lists. Each time i scroll further down the list, new data comes and added to the list. But when the result notifies changes, the adapter leads me to the top of the list each time.
1. How can i remain to the position which the new data was added?
2. This example is the right usage of DiffUtil.calculateDiff?or simply do i need to use :
without the DiffUtil.calculateDiff.