Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7551303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:27:31+00:00 2026-05-30T10:27:31+00:00

There is a new concept in Android: http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html But it isn’t clear fro me.

  • 0

There is a new concept in Android:

http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html

But it isn’t clear fro me. I have an application which is support from 1.6 to 4.0. And I want to follow the new concept, but I can’t set showAsAction property in the menu xml because:

“No resource identifier found for attribute ‘showAsAction’ in package ‘android'”

It’s normal because there is in the doc:

“Note: The android:showAsAction attribute is available only on Android 3.0 (API Level 11) and greater.”

How can I set the menu, that under 3.0 is a simple menu but over 3.0 as an ActionBar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:27:32+00:00Added an answer on May 30, 2026 at 10:27 am

    Per the blog post that you shared:

    Summary

    Android no longer requires a dedicated Menu button, some devices don’t have one, and you should migrate away from using it.

    Set targetSdkVersion to 14, then test your app on Android 4.0.

    Add showAsAction=”ifRoom” to menu items you’d like to surface in the action bar.

    If the ActionBar doesn’t work for your app, you can remove it with Theme.Holo.NoActionBar or Theme.DeviceDefault.NoActionBar.

    So, all you really have to do is this:

    First, set your SDK min and target version in the AndroidManifest.xml file like this:

    <uses-sdk
    android:minSdkVersion="4"
    android:targetSdkVersion="14" />

    Second, add showAsAction=”ifRoom” to the menu items in your menu.xml file.

    Now run your app in Honeycomb or Ice Cream Sandwich and you should see your menu in the action bar. Your app should still work for the pre Android 3.0 releases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am referring to http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/AlarmService_Service.html There the runnable of the thread looks like this
I'm somewhat new to MVC (but not ASP.NET). Is there a similar concept in
In ASP.net MVC4 there's this 'new' concept of a web API for exposing CRUD
I am new to Rails, and i am wondering is there any concept like
I know this is the list of permissions in android Is there any new
I'm new to the concept of testing and there's one thing that's really putting
I'm very new to Rails, so it's likely there's a simple concept here that
I know there is no concept of an abstract class in Ruby. But if
I'm looking for concept explanations or example code, if possible I'm new to (android)
Is there a new version of XML out? If so when was it released

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.