Custom font for ActionBarSherlock tabs

后端 未结 6 2023
滥情空心
滥情空心 2020-12-16 02:13

I want to set font for the \"Video\" and \"Image\" tabs in ActionBarSherlock. I have used the following code to do so. Its showing accurately in ICS but not in

6条回答
  •  太阳男子
    2020-12-16 02:14

    It seems like you are not getting any guidance. I am not sure with my answer's result but yes you can defiantly get idea to make it as you want.

    Let me try to help you. I think you have to somewhat play with the in-built default resources of the android sdk.

    You have to create custom style:

    
    
     
    

    You can also refer this SO.

    Now just apply that theme to your activity and you will get Font of the TabText as you want.

    Comment me if have any query.

    Enjoy coding... :)

    In EXTRA

    Another solution could be to modify the tab image to include the text, with GIMP or photoshop something, and then just set those images in the tabs, instead of images and text. It is a bit of an awkward way of doing it but it would work.

    Hope this helps!

提交回复
热议问题