How do I add a custom font into a <TextView />
or a Custom view for an Android application?
Asked
Active
Viewed 60 times
-5

MiguelHincapieC
- 5,445
- 7
- 41
- 72

Nic Irhumusha
- 3
- 1
1 Answers
0
Try this,
TextView tx = (TextView)findViewById(R.id.hello);
Typeface custom_font = Typeface.createFromAsset(getAssets(),
"fonts/Erika Type.ttf");
tx.setTypeface(custom_font);

K Neeraj Lal
- 6,768
- 3
- 24
- 33