Android Learning Notes 37--menu Resources

Source: Internet
Author: User

Menu Resource

The Android app recommends using XML to define menus, which provide a better way to decouple.

The menu resource is typically located under the Res/menu folder, and its menu root element is a <menu.../>,menu element that can contain child elements as follows:

<item.../> child elements Defining menu Items
<group.../> child elements Wrap multiple <item> defined menu items into a single menu group
<group.../> child elements



Used to control the behavior of the entire menu group, which can specify the following common properties:

Checkablebehavior

Menucategory

Visible

Enable

Android Learning Notes 37--menu Resources

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.