Adding RecyclerView, RecyclerAdapter, and ArrayList to the Note to Self project
Open the Note to Self project. As a reminder, if you want to see the completed code and working app as a result of completing this chapter, it can be found in the Chapter 16/Note to self folder.
Note
As the required actions in this chapter jump around between different files, classes, and methods, I encourage you to follow along with the files from the download bundle by keeping it open for reference in your preferred text editor.
Removing the temporary "Show Note" button and adding RecyclerView
These next few steps will get rid of the temporary code we added in Chapter 14, Android Dialog Windows, and set up our RecyclerView widget ready for binding to RecyclerAdapter later in the chapter:
- In the
content_main.xmlfile, remove the temporaryButtonwith an ID ofbutton, which we added previously for testing purposes. - In the
onCreatemethod of theMainActivity.javafile,...