0

I have a tabhost with tabs and the text is set, I just do not like how they are set by default. The text is centered horizontally, but they gravitate to the bottom vertically. I would like to center them completely and resize the text.

I did not see API calls to do this, insight appreciated

CQM
  • 42,592
  • 75
  • 224
  • 366

1 Answers1

2

See the answer given by Kocus to my question Controlling Tab colour-state / size in a TabActivity? It covers creating your own custom layouts for the Tabs.

Possibly more than you need as I was looking to do more than just text position and size but it's fairly straight-forward. Also, I haven't found any other way of doing anything with the tabs without using this sort of approach.

Community
  • 1
  • 1
Squonk
  • 48,735
  • 19
  • 103
  • 135
  • see the accepted answer in the post here, this is what I was going to suggest, you can inflate and set any view you want as the tab indicator. – Nathan Schwermann Jun 11 '11 at 01:01