Tuesday, January 8, 2013

Add fonts to android


How to add fonts to android text view:


Download the required ttf file and place it in assets folder of your project
Now try  the following code

Typeface tf = Typeface.createFromAsset(getAssets(),"Verdana.ttf");
textview.setTypeface(tf);

No comments:

Post a Comment