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

  • Home
  • SEARCH
  • 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 8695335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:00:28+00:00 2026-06-13T01:00:28+00:00

I upgraded to version 4.2 and found that my old code did not compile

  • 0

I upgraded to version 4.2 and found that my old code did not compile because it appears the ForceOverflow parent theme has been removed.

After Googling this issue it appears that the it was deliberately removed to maintain device consistent menu buttons.

I do understand the argument for using the physical menu button, but I just don’t agree with it… plus it is so damn ugly those old menus.

I really don’t want users saying they cannot access previous functionality (which after all is the reason the menus buttons were moved to be visible on screen), so what are my options here? Will this be changed in a future release? Do I have to stick with a previous version of ABS and deal with some other bugs in the old ABS libs which were fixed in recent versions? Is there any work around?

  • 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-06-13T01:00:30+00:00Added an answer on June 13, 2026 at 1:00 am

    Instead of trying to get a “real” overflow menu, we can fake it with a SubMenu.

    It will look like and behave like the original overflow button, just better because it will always be there.

    private Menu mainMenu;
    private SubMenu subMenu1;
    
        @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    
        mainMenu = menu;
    
        subMenu1 = menu.addSubMenu("");
        subMenu1.add("Settings");
        subMenu1.add("About");
        subMenu1.add("Help");
    
        MenuItem subMenu1Item = subMenu1.getItem();
        subMenu1Item.setIcon(R.drawable.ic_menu_moreoverflow_normal_holo_dark);
        subMenu1Item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
    
        return super.onCreateOptionsMenu(menu);
    }
    

    Of course you can set the subMenus just as you did before. With groudID, itemID etc.

    Note that I already choosed *ic_menu_moreoverflow_normal_holo_dark* as the menu icon.
    This way the button will also look like an overflow.

    Now we just need this Submenu to open when the user pressed the hardware menu button.
    We can do this very easy if you set mainMenu and subMenu1 like i did before.

    @Override
    public boolean onKeyUp(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_MENU) {
                mainMenu.performIdentifierAction(subMenu1.getItem().getItemId(), 0);
                return true;
        }
        return super.onKeyUp(keyCode, event);
    }
    

    Beware that you import:

    import com.actionbarsherlock.view.SubMenu;
    import com.actionbarsherlock.view.Menu;
    import com.actionbarsherlock.view.MenuItem;
    

    and not:

    import android.view.MenuItem;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use a gem found on github that has been upgraded
I've upgraded Resharper from 5 version to 6 version. After that when I type
Does anyone know what version of Java that RIM modified JVM used ?I found
I have a Rails application that has to co-exist with a very old legacy
I've just found out, that my homebrew doesn't work anymore after I upgraded to
How do I automatically upgrade Silverlight 3 applications and start the new upgraded version
I just upgraded jQuery to version 1.4.2 and I am now getting an error
I've upgraded my bootstrap version to 2.0.2 and with this update the design of
I upgraded my EntityModel to version 4.3 using NuGet . Now i want to
I've recently upgraded to the new version of the excellent SignalR library, and moved

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.