Summary
Now we have added the functionality to hold multiple notes and implemented the ability to display them.
We achieved this by learning about and using the RecyclerAdapter
class, which implements the Adapter
interface, which allows us to bind together a RecyclerView
instance and an ArrayList
instance, allowing for the seamless display of data without us (the programmer) having to worry about the complex code that is part of these classes, and which we don't even see.
In the next chapter, we will start with making the user's notes persist when they quit the app or switch off their device. In addition, we will create a "Settings" screen, and see how we can make the settings persist as well. We will use different techniques to achieve each of these goals.