Next up is to configure the action bar to our ToDo application. The action bar is that bar at the top of your activity UI, showing your app's title. It can also have toolbar-style buttons and an "overflow menu", each holding what are known as action items. In this tutorial, we will add an action bar item to launch an "about" page, though we will not actually show that page until a later tutorial.
Alt-Enter (Option-Return on macOS) for bringing up quick-fixes for the problem at the code where the cursor is.
Ctrl-Alt-O (Command-Option-O on macOS) will organize your Java import statements, including removing unused imports.
Ctrl-Alt-L (Command-Option-L on macOS) will reformat the Java or XML in the current editing window, in accordance with either the default styles in Android Studio or whatever you have modified them to in Settings.
NOTE: Copying and pasting Java code from this book may or may not work, depending on what you are using to read the book. For the PDF, some PDF viewers (e.g., Adobe Reader) should copy the code fairly well; others may do a much worse job. Reformatting the code with Ctrl-Alt-L (Command-Option-L on macOS) after pasting it in sometimes helps.
The preview of this section is being chased by zombies.