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 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
Post a Comment