android layout - How to add typeface in eclipse -


how add typeface in eclipse can use in our application. have read provided typeface in inbuilt typeface android

http://developer.android.com/reference/android/graphics/typeface.html typeface static fields.

is there way add typeface hereenter image description here

i used own font in android application follows,

put font file .ttf assets folder.

then create object of typeface as,

mtypeface = typeface.createfromasset(getassets(), ttffilename); 

and set type face ui elements as,

findviewbyid(r.id.nametextview).settypeface(mtypeface, typeface.bold); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -