Android Tabhost, format text of the tabs
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 appr开发者_开发问答eciated
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.
精彩评论