Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Going Further > Creating Menus

Creating Menus

All Android devices before version 3.0 include a menu button. This menu button creates an activity-specific menu that you can use to provide extra functionality in your app (Figure 3.8). This frees you to design your UI with only the most important actions and to hide optional functionality. On Android versions 3.0 and later, the menu button is generally part of the application UI; it appears as a button in the action bar. You will learn more about the action bar in Chapter 6.

image

Figure 3.8 A menu on Android 2.3


image Tip

You should take care not to provide too much functionality via the options menu. Common user actions should be available with a single touch in your UI. Users may not even know that an action is available if it is buried in a menu.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint