Summary
In this chapter, we learned how to add RecyclerView
support to our project. We also learned how to add RecyclerView
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 can start your exploration here: https://packt.link/ClmMn.
In the next chapter, we will look into requesting special permissions on behalf of our app to enable it to perform certain tasks, such as accessing a user’s contacts...