July 2015
Beginner to intermediate
600 pages
18h 59m
English
The top-right area of the toolbar is reserved for the toolbar’s menu. The menu consists of action items (sometimes also referred to as menu items), which can perform an action on the current screen or to the app as a whole. You will add an action item to allow the user to create a new crime.
Your menu will require a few string resources. Add them to strings.xml (Listing 13.5) now. These strings may seem mysterious at this point, but it is good to get them taken care of. When you need them later, they will already be in place, and you will not have to stop what you are doing to add them.
Listing 13.5 Adding strings for menus (res/values/strings.xml)
<resources> ... <string name="date_picker_title">Date of crime:</string> ...
Read now
Unlock full access