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 based on completing this chapter, it can be found in the Chapter 16/Note to self folder.
Tip
As the required action in this chapter jumps around between different files, classes, and methods, I encourage you to follow along with the files from the download bundle for reference open in your preferred text editor.
Removing the temporary Show Note button and adding the 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 ready for binding to the RecyclerAdapter later in the chapter:
- In the
content_main.xmlfile, remove the temporaryButtonwith anidofbutton, which we added previously for testing purposes. - In the
onCreatemethod ofMainActivity.java, delete theButtondeclaration and initialization, along with the anonymous class...