开发者

TextAppearanceSpan with custom fonts

Is it possible to create a TextAppearanceSpan, which takes font family name as String, but use a custom font. I know how to c开发者_高级运维reate a TypeFace from a file with Typeface.createFromAsset(), but it isn't helping.


People seem to still have trouble with this so here you go: This is how it was accomplished for TypefaceSpan, overriding for TextAppearanceSpan is just a tad more code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜