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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -