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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:13:01+00:00 2026-05-30T20:13:01+00:00

How to get the little gray triangle (indicating a spinner/submenus usually) to a custom

  • 0

How to get the little gray triangle (indicating a spinner/submenus usually) to a custom action in the ActionBar? I manage to add submenus to my action, but don’t see a way to add the small triangle in the lower right corner.
(Same when using android.widget.ShareActionProvider)

How I want it (sample from API Demos):

enter image description here

I am able to edit submenus, but not getting the small gray triangle to the lower right of my action icon:

enter image description here

My code for the menu:

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/menu_new_form"
          android:icon="@drawable/ic_new_form"
          android:title="@string/menu_new_form"
          android:showAsAction="ifRoom|withText">
        <menu>
            <item android:id="@+id/action_sort_size"
                  android:icon="@android:drawable/ic_menu_sort_by_size"
                  android:title="Form 1"
                  android:onClick="onSort" />
            <item android:id="@+id/action_sort_alpha"
                  android:icon="@android:drawable/ic_menu_sort_alphabetically"
                  android:title="Form 2"
                  android:onClick="onSort" />
        </menu>
    </item>
</menu>
  • 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-30T20:13:02+00:00Added an answer on May 30, 2026 at 8:13 pm

    I’ve checked in the sources of Android, and here’s how Google implement it:

    enter image description here

    (it’s ic_menu_share_holo_light.png)

    So if Google draws this little triangle directly in the icon image, I suppose it’s the best practice currently.

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

Sidebar

Related Questions

i need to get this little gray rectangle (red circle) to be displayed both
I'm trying this, but I get a little distance. \documentclass{article} \usepackage{graphicx} \usepackage[a3paper,landscape]{geometry} \begin{document} \includegraphics[width=5cm,
I get the concept behind a trie . But I get a little confused
When i type in either of the textboxes i get little circles appearing instead
This might get a little confusing as I have tried everything to make this
I'm trying to get a little program to send hex over RS232. From what
I am a programming beginner, and would like to get a little help with
Try running this in a .VBS file MsgBox(545.14-544.94) You get a neat little answer
I need a little help here: I get a file from an HTML upload
I am trying to get the tilt-in animation working on a little project of

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.