Chapter 10
Going a la Carte with Your Menu
In This Chapter
Building an options menu
Building a context menu
Every good Android application includes menus. If you have an Android device and you’ve downloaded a few applications from the Google Play Store, you’ve probably encountered a few good and bad menu implementations.
A bad menu provides very little (if any) helpful text in the menu description and provides no icon. A few common menu faux pas include
A poor menu title
A menu without an icon
No menu
A good menu should have a visual as well as textual appeal to the end user. The appearance of a menu icon shows that the developer actually thought through the process of creating the menu and decided which icon best suits the application.
Activities and fragments can both have menus, in which case they'll both be combined into one. In this chapter, you add option and context menus to the fragments in the Task Reminder app, but you could just as easily add them to an activity, too.