How to import external font/ typeface in ANDROID STUDIO? -
i wanna know how utilize external font in android studio there no assets folder. have helpful turtorial on net pretend utilize assets folder. created asset folder myself in src/main android studio doesnt recognie getassets(). help me maybe :)
thank you
go on project: app-->src-->main
create assets folder this:
|assets |-----------------fonts |-------------------font.ttf |java |res androidmanifest.xml
and use
typeface face=typeface.createfromasset(getassets(),"fonts/digital.ttf"); txtv.settypeface(face);
android fonts android-studio
No comments:
Post a Comment