No resource Identifier found for attribute ' showasaction ' on package ' Android '

Source: Internet
Author: User

When you run a project in a Menu.xml file, the Item property android:showasaction error No Resource identifier found for attribute ' showasaction ' on package ' a Ndroid '

Google, the Foreigner said is the version of the problem, Showasaction was added in the API level 11 to increase the API to 11, add "android-support-v7-appcompat.jar" To the Android library (Private Libraries)

Android:showasaction = "Never"

When your application target is set to a hive platform, you can make use of all the features provided by the Action Bar to place your Options menu item in the upper-right corner of the action Bar, which is more convenient for the user, and the main menu item property that controls the behavior is android:showasaction.
The acceptable values for this property are:
1. Always: This value causes the menu item to be displayed on the action bar.
2. Ifroom: If there is enough space, this value causes the menu item to appear on the action bar.
3. Never: This value causes the menu item to never appear on the action bar.
4. Withtext: This value causes the menu item to be displayed along with its icon and the text of the menus.

However, this high version is not used here, so it is OK to delete this property here.

No resource Identifier found for attribute ' showasaction ' on package ' Android '

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.