Android UI Common Components

1 . Menu (Menu)

a. Options menu (OptionMenu)

Options menu is a main menu item of the application, the application for placing operations generated global impact.

Wrapped with Menu item, a submenu also need to use Menu wrapped item.

Button frequently used by app: showAsAction = "always" be set, and can be android: specified icon button icon attribute,

When the icon and the text exist, through the app: showAsAction = "always | withText"

 

 

 

b. context menu (the ContextMenu)

c. pop-up menu (PopupMenu)

Guess you like

Origin www.cnblogs.com/niconotine/p/12305467.html