Summary
In this chapter, we learned how to add a LazyList
composable to our app. We also learned how to populate it with items. We went through adding different item types, which is particularly useful for titles. We covered interaction with LazyList
composable items responding to clicks and swipe gestures.
Lastly, we learned how to dynamically add and remove items to and from a lazy list. The world of lazy lists 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.
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 list or microphone. We will also explore using Google’s Maps API and accessing a user’s physical location.