Running the app
You can now run the app and enter a new note as shown in the following screenshot:
After you have entered several notes of several types, the list (RecyclerView
) will look something like this:
Reader challenge
We could have spent more time formatting the layouts of our two dialog windows. Why not refer to Chapter 5, Beautiful Layouts with CardView and ScrollView, as well as the Material Design website and do a better job than we have done so far? Furthermore, you could enhance the RecyclerView
class/list of notes by using CardView
instead of LinearLayout
.
Don't spend too long adding new notes, however, because there is a slight problem. Close and restart the app. Uh oh, all the notes are gone!