PLAY PODCASTS
Animaciones fáciles en RecyclerView con DiffUtil | EP 068
Season 2 · Episode 68

Animaciones fáciles en RecyclerView con DiffUtil | EP 068

Podcast DevExpert · Antonio Leiva

December 23, 202016m 1s

Audio is streamed directly from the publisher (downloads.pod.co) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

🎁Te cuento cómo aprender todo sobre Kotlin en este training gratuito:

👉 https://bit.ly/3mxZV4V


Animaciones fáciles en RecyclerView con DiffUtil👉https://youtu.be/pO47T8fMZUY


Animar las modificaciones de elementos en un RecyclerView es fácil si sabes cómo.


En este vídeo te muestro con ejemplos prácticos cómo si solo utilizamos notifyDataSetChanged(), los elementos no se animan.


Para ello hace falta usar funciones que identifican al adapter cuáles son los cambios exactos que han ocurrido, como notifyItemInserted(), o notifyItemRemoved()


Pero cuando los cambios que ocurren son complejos, calcular las diferencias y realizar las operaciones correctamente puede ser muy complejo.


Es por ello por lo que la herramienta DiffUtil se vuelve imprescindible.


Espero que os guste ¡Un abrazo!


#RecyclerView #DiffUtil