I want to use external fonts in my app. I have tried adding new fonts using AssetManager but it did not work. Below is my code:
Typ
In order to access our font easily, we need to bundle it with our application in a way that our code can subsequently load it. To do this, we create a Fonts folder in our assets direct
This may be your .xml
Write following code in your .java class
Typeface tf = Typeface.createFromAsset(getAssets(),
"fonts/BPreplay.otf");
TextView tv = (TextView) findViewById(R.id.CustomFontText);
tv.setTypeface(tf);