Chapter 11
Applying Menus
Like applications for the desktop and some mobile operating systems, such as Windows Mobile, Android supports activities with application menus. In Android, this is called an options menu. Some Android phones will have a dedicated key for popping up the options menu; others will offer alternate means for triggering the menu to appear, such as the on-screen button used by the Archos 5 Android tablet.
Also, as with many GUI toolkits, you can create context menus for your Android applications. On mobile devices, context menus typically appear when the user taps and holds over a particular widget. For example, if a TextView
had a context menu, and the device was designed for finger-based touch input, you could push the ...
Get Beginning Android 2 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.