1

I have been trying to figure out how to make an actionbar tab menu like the one pictured below. How can I make my tabs display the icon above the text as shown here? When I implement it, it displays the icon to the left of the text. Is there something akin to the compund drawable feature of TextView (android:drawableTop) I can use for the tab?

enter image description here

I am using a custom XML for the Main bar, and actionbarsherlock.

Plastic Sturgeon
  • 12,527
  • 4
  • 33
  • 47
  • this is how the old android tabs looked – tyczj Jun 24 '13 at 19:07
  • so is that just not do-able any more? (within actionbar) I have noticed all the actionbar action buttons are just icons now. Does google explain that change? – Plastic Sturgeon Jun 24 '13 at 19:07
  • not without creating your own tabhost – tyczj Jun 24 '13 at 19:08
  • @tyczj - is it possible to get action items with text below instead of tabs? That might be a solution if its possible. – Plastic Sturgeon Jun 24 '13 at 19:15
  • by action items you mean the actionbar menu items right? no those also display on the side too. you dont really see many apps with text and icons anymore. You can however long press on an action item and it will display the text of the button if that is a possible solution – tyczj Jun 24 '13 at 19:17
  • Thanks tyczj. Put that in an answer and I'll click it accepted. – Plastic Sturgeon Jun 24 '13 at 20:55
  • Here you will get the solution of what you want for current Action Bar. http://stackoverflow.com/a/22235736/523118 – gypsicoder Aug 22 '15 at 09:37

1 Answers1

1

that is the old android tabs view, the new ones have the text on the side next to the image

tyczj
  • 71,600
  • 54
  • 194
  • 296