Summary
Now we have added the ability 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
and an ArrayList
, 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 that 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.