What is android:showasaction= "never" for?

Source: Internet
Author: User

There is a directory in the Android development project file called menu with Tybmain.xml
The item option has a android:showasaction = "never" So what does that say?
Originally used for a specific version, when your application target is set to a hive platform (i.e. Android 3.0), you can take advantage of the full functionality provided by the action Bar to place your Options menu item in the upper right corner of the action bar, which is easier for users to use. The main menu item property that controls the behavior is android:showasaction. The acceptable values for this property are:

1.alaways: This value causes the menu item to always appear on the Actionbar.

2.ifRoom: If there is enough space, this value will cause the menu to appear on the Actionbar.

3.never: This value menu will never appear in Actionbar yes.

4.withText: This value causes the menu to be displayed along with its icon and menu text.

What is android:showasaction= "never" for?

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.