-5

How do I add a custom font into a <TextView /> or a Custom view for an Android application?

MiguelHincapieC
  • 5,445
  • 7
  • 41
  • 72

1 Answers1

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