Where to go from here
You’ve done a lot of work and now you know how to add animations, provide a swipe handler, add section headers, and use the DiffUtil class. Well done!
A great next step would be to eliminate the PhotoRow model class and DefaultViewHolder and get the project working with separate Header and Photo model objects and a dedicated ViewHolder for each.
The final project for this tutorial is available here. In the final project, be sure to remember to set the API key in NasaApi.kt.
If you need more information on RecyclerViews, you can check out the following Android developer documentation:
I hope you enjoyed this Intermediate RecyclerView tutorial, and if you have any questions or comments, please join the forum discussion below!
Go forward and make great animated RecyclerViews!