https://kotlinlang.org logo
#android
Title
# android
v

Vibhav Airan

08/08/2021, 1:38 PM
Hey Guys! Just wanted to ask that Is there any better way to refresh the item views of a recycler view without actually notifying the adapter to refresh the whole thing?
😶 3
j

Julien Raad

08/08/2021, 3:33 PM
Are you using diff util ?
v

Vibhav Airan

08/08/2021, 3:41 PM
@Julien Raad Will it be able to tell that the view of a particular item has been changed? I guess it compares on the basis of the data values that the item is holding.
j

Julien Raad

08/08/2021, 3:46 PM
True, you will provide the comparison predicate in areContentsTheSame
3 Views