Summary
In this chapter, we learned how to add RecyclerView
to our project. We also learned how to add it to our layout and how to populate it with items. We went through adding different item types, which is particularly useful for titles. We covered interaction with RecyclerView
: responding to clicks on individual items and responding to swipe gestures. Lastly, we learned how to dynamically add and remove items to and from RecyclerView
. The world of RecyclerView
is very rich, and we have only scratched the surface. Going further would be beyond the scope of this book. However, it is strongly recommended that you investigate it on your own so that you can have carousels, designed dividers, and fancier swipe effects in your apps. You could start your exploration here: https://awesomeopensource.com/projects/recyclerview-adapter.
In the next chapter, we will look into requesting special permissions on behalf of our app to enable performing certain tasks, such as accessing the user...