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.
精彩评论