Android
Pages
Codes and Examples
How To Install Android
Android Interview Questions
Windows Shortcuts
Word shorcuts
Emulator Shortcuts
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment