【发布时间】:2014-05-06 15:48:07
【问题描述】:
我在Action bar 中为我的应用添加了自定义字体。但它有一个问题。当 Action bar 的文本比 Action bar 的空间长时,它会显示如下内容:
文字很长...[]
3 分,某些情况下是一个罕见的字符到决赛。
有什么问题?
基础活动
textoTitulo.setTypeface(Modulo.fontPrincipal(this));
fontPrincipal
public static Typeface fontPrincipal(Context context) {
Typeface font = Typeface.createFromAsset(context.getAssets(), "fonts/principal.TTF");
return font;
}
【问题讨论】:
标签: android text fonts android-actionbar