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

The Archive Base Latest Questions

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

<menu xmlns:android=http://schemas.android.com/apk/res/android> <item android:id=@+id/menu_settings android:icon=@drawable/ic_launcher android:title=One android:orderInCategory=0 android:showAsAction=ifRoom > <menu> <item android:id=@+id/subItem1 android:title=sub 1

  • 0
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_settings"
    android:icon="@drawable/ic_launcher"
    android:title="One"
    android:orderInCategory="0"
    android:showAsAction="ifRoom" >
    <menu>
        <item android:id="@+id/subItem1"
                android:title="sub 1" />
        <item android:id="@+id/subItem2"
                android:title="sub 2" />
    </menu>
 </item>

I want an icon and title for one of my menu tabs but only the icon shows up, where am I going wrong?

  • 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-09T01:28:10+00:00Added an answer on June 9, 2026 at 1:28 am

    You should add withText :

    android:showAsAction="ifRoom|withText"
    

    However, it’s only a hint and there’s no guarantee that your tab will display the text. It depends on the device screen size.

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

Sidebar

Related Questions

Here is my XML <?xml version=1.0 encoding=UTF-8?> <menu xmlns:android=http://schemas.android.com/apk/res/android> <item android:id=@+id/refresh android:title=Home android:icon=@drawable/menu_home />
in an android app , I use menus for an activity <menu xmlns:android=http://schemas.android.com/apk/res/android> <item
I have this menu.xml <?xml version=1.0 encoding=utf-8?> <menu xmlns:android=http://schemas.android.com/apk/res/android> <item android:id=@+id/refresh android:title=Actualizar android:icon=@android:drawable/ic_menu_refresh></item> <item
My select_screen_menu.xml <?xml version=1.0 encoding=utf-8?> <menu xmlns:android=http://schemas.android.com/apk/res/android> <item android:id=@+id/home_menu android:icon=@drawable/home_tab android:title=Home /> <item android:id=@+id/submit_report
I'm using the following menu XML in my project: <?xml version=1.0 encoding=utf-8?> <menu xmlns:android=http://schemas.android.com/apk/res/android>
I try to do simplest listView. I create layout: <TextView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/history_menu_item android:layout_width=wrap_content android:layout_height=match_parent
I have an options_menu.xml file like this: <?xml version=1.0 encoding=utf-8?> <menu xmlns:android=http://schemas.android.com/apk/res/android> <item android:id=@+id/search
I see no problem in the code. Help? preferences.xml <?xml version=1.0 encoding=utf-8?> <PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android>
I'm trying to add an icon to menu items. This does not work: android:icon=@android:drawable/ic_menu_save
In one of my Android projects, I am creating a context menu from a

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.