Chapter 10

Going a la Carte with Your Menu

In This Chapter

arrow Building an options menu

arrow 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

check.png A poor menu title

check.png A menu without an icon

check.png 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. ...

Get Android Application Development For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.