O'Reilly logo

Android Application Development For Dummies, 2nd Edition by Donn Felker, Michael Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required