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 8604691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:38:17+00:00 2026-06-12T02:38:17+00:00

Context I am creating an action bar with some action items, using ActionbarSherlock. Some

  • 0

Context

I am creating an action bar with some action items, using ActionbarSherlock. Some of them are overflowed, so they are shown in the overflow submenu.

My problem

Those overflowed items are shown in the submenu just as mere texts.

I have tried MenuItem.SHOW_AS_ACTION_IF_ROOM and MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT for setShowAsAction() but both have the same behavior:

Overflowed items without icon

What I want

Is it possible to show these items in the overflow submenu as <their_icon> + <their_text>? Something like this:

Overflowed items with icon

  • 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-12T02:38:18+00:00Added an answer on June 12, 2026 at 2:38 am

    I don’t understand either why submenus can have icons and menus only text.
    Maybe adding menu items as submenus to the root menu could help you. 🙂

    Just a mention, adding icons like this will force you to use the ActionBar (Sherlock) and not the standard way of displaying menus at the bottom when pressing the menu key in older versions of Android.

    <menu xmlns:android="http://schemas.android.com/apk/res/android" >
    <item
        android:id="@+id/root_menu"
        android:icon="@drawable/ic_menu_moreoverflow_normal_holo_light"
        android:showAsAction="always"
        android:title="More">
        <menu>
            <item
                android:id="@+id/menu_settings"
                android:icon="@drawable/ic_menu_settings_holo_light"
                android:showAsAction="never"
                android:title="Settings" />
            <item
                android:id="@+id/menu_about"
                android:icon="@drawable/ic_menu_info_details"
                android:showAsAction="never"
                android:title="About"/>
       </menu>
    </item>
    </menu>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using XML file for creating Context Menu for my ListView. (Please see
I'm creating a matlab GUI using GUIDE. I can't get the context menus to
currently i am using ActionBarSherlock for my project. I am creating my actionbar with
I'm creating a performance-critical application that implements image manipulation. I'm using some pixel pointers
It's not so much the action bar, as much as it is creating a
I'm interested in creating an action for the admin interface that requires some additional
I'm creating an Alert dialog by using the following: AlertDialog.Builder builder = new AlertDialog.Builder(context);
I am using MvcSiteMapProvider 2.2.1 (http://mvcsitemap.codeplex.com), and am having a problem with creating children
I'm creating an action bar on ICS. Due to spacing only the icons are
How do I override the execution context when creating a new Task object? I

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.