Android Bootstrap by Bearded-Hen Icons Fonts not showing

别来无恙 提交于 2019-12-11 21:46:01

问题


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 ?


回答1:


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();




回答2:


The fontawesome icons will only display if fontawesome-webfont.ttf is present in the assets folder of your app, so you need to copy the file there. In a typical Android studio project your assets folder can be found at app/src/main/assets.



来源:https://stackoverflow.com/questions/27630630/android-bootstrap-by-bearded-hen-icons-fonts-not-showing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!