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

The Archive Base Latest Questions

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

Please view image of Google maps fig 1. from the link below: http://www.androidpatterns.com/uap_pattern/search-%E2%80%93-main-menu Currently

  • 0

Please view image of Google maps fig 1. from the link below:

http://www.androidpatterns.com/uap_pattern/search-%E2%80%93-main-menu

Google maps fig 1

Currently onCreateOptionsMenu(Menu menu) {} will add menu to action bar. How to create menu below?

Finally:

  1. How do I control both Menu options below and Action bar above.
  2. Is there any source code or demo for the same available.
  • 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-31T21:27:35+00:00Added an answer on May 31, 2026 at 9:27 pm

    On pre-Honeycomb the overflow menu for ActionBarSherlock (that is, item that do not fit into the action bar) will be placed in the normal options menu by default.

    Your posted screenshot can be achieved using the following:

    public boolean onCreateOptionsMenu(Menu menu) {
        menu.add("Places")
            .setIcon(R.drawable.ic_places)
            .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
        menu.add("Layers")
            .setIcon(R.drawable.ic_layers)
            .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
        menu.add("My Location")
            .setIcon(R.drawable.ic_location)
            .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
        menu.add("Search")
            .setIcon(R.drawable.ic_search)
            .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
        menu.add("Directions")
            .setIcon(R.drawable.ic_directions)
            .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
        menu.add("Starred Places").setIcon(R.drawable.ic_starred);
        menu.add("Clear Map").setIcon(R.drawable.ic_clear);
        menu.add("Join Latitude").setIcon(R.drawable.ic_latitude);
        //Whatever else is under the "More" menu
        return true;
    }
    

    Here’s a screenshot from one of the sample application that come with the library demonstrating this on Android 2.3.3:

    When running on a Honeycomb or a ICS device (with no hardware menu button) the overflow menu becomes the last item on the action bar and shows up in a dropdown list.

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

Sidebar

Related Questions

Could you please help me to get image upload working on a view with
Can we add image together with text in a picker view? Anyone please help!
I have a grid view control in my application. Please see the below code.
I am using vb.net code. I have grid view, please see the code below:
I am using the php post request example given on http://code.google.com/apis/chart/docs/post_requests.html for generating chart.
i'm trying to draw a line from the originate point of an image view
Please view the code and gaps between the images shown here: http://jsfiddle.net/uyVZj/2/ In Firefox
Please sugest how to add a scroll to an image view iam writing some
Please view this image of the crash after I choose to debug it in
To make things easy, here's the site - http://schnell.dreamhosters.com/folio/pixelread.php View the source code all

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.