我想将操作栏标题、选项卡和菜单项的字体改为roboto。
我想知道这是否可以通过样式来实现?因为我无法为它们创建自定义视图,这是分配custm字体的最佳方式。
我浏览了以下链接
https://stackoverflow.com/a/14681975/155196
How to Set a Custom Font in the ActionBar Title?

最佳答案

这里有一个密码帮我做到了:

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

请查看hereAndroid上默认可用的字体。
从我所读到的内容来看,如果不对视图进行子分类,就不可能添加其他字体,因此我无法帮助您。
编辑:我可能错了。看看这个:http://www.jayway.com/2013/01/22/custom-typeface-in-android/
这里:http://www.androidguys.com/2008/08/18/fun-with-fonts/

07-26 09:32
查看更多