android - How to access custom fonts from library project? -


I created an Android library project. I used custom fonts in my XML from my property folder but I did not use any other After integrating the project, I can not access fonts from the asset folder of the Library Project. I can access it from the new project's asset folder. When I used it with the library project, it was stopped and the error was "made quite basic" How can I get Asset Folder fonts from Library Project? Is it possible ?? thank you in advanced.

Your description is not clear, you should provide your code.

To access fonts from properties, you have to put the method inside the create () method, then you can create your own typeface with the font in the property / font folder

  Protected Zero Corrupt (Bundle Saved Instantstate) {Typefaces myFont = Typeface.createFromAsset (getAssets (), "Fonts / Fonts. TTF"); }    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -