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
Post a Comment