【发布时间】:2013-07-31 09:19:17
【问题描述】:
我有一个字体,我想更改 android 中操作栏标题的字体。 有没有办法设置这样的标题字体?
this.setTitle(myTitle.toUpperCase());
this.setTypefaceofTitle(tf);
这不是复制问题,此链接 (How to Set a Custom Font in the ActionBar Title?) 上的那些方法不起作用。 当我尝试它们时,eclipse给出了那个错误:java.lang.noSuchMethodError
【问题讨论】:
-
你的意思是在
ActionBar的应用上改标题吗? -
是的,我正在编辑问题。
标签: java android eclipse titlebar