Android Bootstrap by Bearded-Hen Icons字体未显示 [英] Android Bootstrap by Bearded-Hen Icons Fonts not showing

查看:98
本文介绍了Android Bootstrap by Bearded-Hen Icons字体未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 Android-Bootstrap 下载了示例,但是所有字体图标都是不显示。

I just downloaded the sample from Android-Bootstrap, But all the fonts Icons are not displaying.

我刚刚下载了最新版本,但仍然遇到相同的问题。 (我尝试运行示例项目)也有同样的问题。

I just downloaded the latest version, and still I am having the same problem. (I tried to run the sample project) also same issue.

有人有这个问题吗?还是有人知道如何解决这个问题?

Is anyone have this issue ? or does anyone knows how to came around ?

推荐答案

fontawesome-webfont.ttf 文件下载并复制到app / src / main / assets。在应用程序的OnCreate事件中,添加以下代码。
TypefaceProvider.registerDefaultIconSets();

fontawesome-webfont.ttf file download and copy to app/src/main/assets. In the OnCreate event of the application, add the following code. TypefaceProvider.registerDefaultIconSets();

这篇关于Android Bootstrap by Bearded-Hen Icons字体未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆