相关疑难解决方法(0)

在android中使用外部字体

我想在我的应用程序中使用外部字体.我尝试添加新的fonts使用,AssetManager但它没有用.以下是我的代码:

Typeface face;

face = Typeface.createFromAsset(getAssets(), "font.otf");

textview.setTypeface(face);
Run Code Online (Sandbox Code Playgroud)

但它没有显示文字......

请帮我解决一下这个.

fonts android android-widget

60
推荐指数
3
解决办法
8万
查看次数

标签 统计

android ×1

android-widget ×1

fonts ×1