问题
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