Android Development Review notes-Menu menu component (option Menu, context menu, sub Menu), Android menu
Menus are one of the most common elements in the user interface and are frequently used. In Android, menus are divided into three types: OptionsMenu and ContextMenu) and SubMenu ).
There are two menu implementation methods: one is to generate a menu by layout file xml, and the other is to generate a menu by code.
The three menus have a lot of conte
This is a very smooth menu display effect, applied to Amazon, when you move the mouse up and down, the level two menu will be very light switch, without any delay, to the user such as silky feeling. This effect with the help of a jquery plug-in Menu-aim, this article will be combined with examples to explain how to achieve a fast-speed menu effect.
HtmlFirst of all, we set up the main menu, we borrow the common product classification of the electric website. The HTML structure code is as foll
sentence defines an icon that replaces the small dot of li. "Transparent" refers to the background is transparent, "2px 8px" specifies the location of the icon is from the left 2px, from the top 8px. This sentence can also be divided into four sentences: "Background-image:url (images/icon_dot_lmenu.gif);" BACKGROUND-POSITION:2PX 8px; Background-repeat:no-repeat; background-color:transparent; "
"#menu li a:hover" defines the changes in color and small icons after the mouse moves to the
The Android menu is divided into three types: the Options menu, the context menu, and the submenu (Sub menu).Options Menu: Press the menu button on the Device menu to appear. Tick marks are not supported.Context Menu: Long press the menu that appears for a component. menu item icons are not supported.Sub-menu (submenu): is a sub-menu. menu item icons are not supported and nested submenus are not supported.
Background:today, browse the Web page found Baidu know on an interesting JS problem, the question is actually quite simple, understand point front-end development technology should be able to achieve. Questioner's request: to implement a submenu popup, the menu has a total of three levels, each level menu display has 500 milliseconds of delay. The questioner then posted his question code. I'll take a look at the code I put on someone else, as long a
Menu Category:Options Menu (Optionsmenu)context Menu (ContextMenu)Sub-menu (submenu)Pop-up menu (Popup )first of all, Options Menu (Optionsmenu)First, the method is introduced:Public Booleanoncreateoptionsmenu (Menu menu) : Use this method to invoke the Optionsmenu . Public booleanonoptionsitemselected (MenuItem Item) : The action that occurs after the menu item is selected. Public voidonoptionsmenuclosed (Menu menu): the action that occurs when the m
Reprint of this article from the Click to open the link
Eclipse's menu, toolbar toolbar, and even view context menu ContextMenu are implemented using either the action or the command.
Action that is
The Org.eclipse.jface.action.IAction Command is the Org.eclipse.core.commands.Command from their package name, and the action is UI-related, In addition to executable code (run method), there are some UI information, such as action name (Label), description picture (image), and so on. The command, w
horizontal menu? Of course it works. The following code shows the effect at the top of this page:Page code
Home
About us
Website standards
Benefits of standards
How to transition
Related tutorials
Tools
Resources and links
FAQs
Style Sheet code# Submenu {MARGIN: 0px 8px 0px 8px;PADDING: 4px 0px 0px 0px;BORDER: # fff 1px solid;BACKGROUND
/icon_dot_lmenu.gif); background-position: 2px 8px; Background-repeat: No-Repeat; background-color: transparent ;"
"# Menu Li A: hover" defines the color changes and small icon changes after the mouse moves over the link.
OK. You do not need to use the table menu. You can obviously feel that all the display styles originally written in HTML are stripped and put into the CSS file. The page code saves more than half. It is easy to modify the menu style through CSS.
2. Do not use the table menu (ho
-IMAGE: url (images/icon_dot_lmenu.gif); BACKGROUND-POSITION: 2px 8px; BACKGROUND-REPEAT: no-repeat; BACKGROUND-COLOR: transparent ;"
"# Menu li a: hover" defines the color changes and small icon changes after the mouse moves over the link.
OK. You do not need to use the table menu. You can obviously feel that all the display styles originally written in HTML are stripped and put into the CSS file. The page code saves more than half. It is easy to modify the menu style through CSS.2. Do not us
Background:today, browse the Web page found Baidu know on an interesting JS problem, the question is actually quite simple, understand the point of front-end development technology should be able to achieve. Questioner's request: to implement a submenu popup, the menu has a common level three. Each level menu is displayed with a delay of 500 milliseconds. The questioner then posted his question code. code that's posted to someone else. I would have
Let's look at the effect code first.
Html
First of all, we set up the main menu, we borrow the common product classification of the electric website. The HTML structure code is as follows, where we use the HTML5 Data-submenu-id property setting, which is useful when the plug-in is invoked.
The code is as follows
Copy Code
The submenu corresponds to the main menu,
main menu, we borrow the common product classification of the electric website. The HTML structure code is as follows, where we use the HTML5 Data-submenu-id property setting, which is useful when the plug-in is invoked.
The code is as follows
Copy Code
The submenu corresponds to the main menu, the id attribute value of each subm
Menu | Level Two menu The menu you set up in this way requires you to refuse to use the button on (RollOut) event. Instead, use on (rollover) and flexible application of the upper button to the lower button shading.
First, this is also the most important step:
Build a big enough button (big to the whole scene). Place it at the bottom so that it can be obscured by other buttons so that its on (rollover) {} Event is not triggered when there are other buttons on it.
Its role is to close the
Android Study Notes (34): Android menu
Android menus are divided into three types: Option Menu, Context Menu, and Sub Menu ).
Option Menu: Click the Menu button on the device to display the Menu. You cannot select a flag.
Context Menu: a Menu that appears when a component is long pressed. Menu item icons are not supported.
SubMenu: SubMenu. Menu item icons are not supported, and nested sub-menus are not sup
Android menu Development
Menu category:OptionsMenu context menu SubMenu)
Pop-up menu (
Popup)
First, the option menu (OptionsMenu)
I. Method Introduction:
Public booleanonCreateOptionsMenu (Menu menu): use this method to call OptionsMenu.
Public booleanonOptionsItemSelected (MenuItem item): The action that occurs after the menu item is selected.
Public voidonOptionsMenuClosed (Menu menu): The action that occurs after the Menu is closed.
Public bool
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.