【问题标题】:Sherlock Actionbar Custom FontSherlock Actionbar 自定义字体
【发布时间】:2013-03-21 00:17:56
【问题描述】:

我想将Action Bar TitleTabsMenu Items的字体改为Roboto。

我想知道这是否可以通过 Styles 完成?因为我无法为这些创建自定义视图,这是分配自定义字体的最佳方式。

我已经浏览了以下链接

https://stackoverflow.com/a/14681975/155196

How to Set a Custom Font in the ActionBar Title?

【问题讨论】:

    标签: android actionbarsherlock custom-font


    【解决方案1】:

    这是为我完成的代码:

    <style name="AppTheme" parent="AppBaseTheme">
        ...
        <item name="android:typeface">serif</item>
        ...
    </style>
    

    查看here 了解android 上默认可用的字体。 从我读到的内容来看,如果不对您的视图进行子分类,就不可能添加其他字体,所以我无法帮助您。

    编辑:我可能错了。看看这个:http://www.jayway.com/2013/01/22/custom-typeface-in-android/ 在这里:http://www.androidguys.com/2008/08/18/fun-with-fonts/

    【讨论】:

    • +1 机器人怎么样?你能用这个解决方案设置机器人吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多