Set other font to textview

To set the other fonts into textview, using Typeface.

Copy the fonts into assets folder,

Typeface type = Typeface.createFromAsset(getAssets(),"fonts/consolas.ttf");

textInfo.setTypeface(type);


Comments

Popular posts from this blog

Clear the app data programmatically in android

convert an integer to a string in java

Print the large string values in android log cat.