How to use Custom Font in Android App - Android Studio 2.0

preview_player
Показать описание
Support My New Channel
________________________
Visit our official website, Get source code!
______________________

In this tutorial , i'm gonna teach you on how to Use custom Font in Android App

I think that this tutorial could help you !

Thanks

Find this project at GitHub :

Find Me :

GitHub :

Google :

Twitter :

Subscribe Me :
Рекомендации по теме
Комментарии
Автор

1. I would like to change the whole app font.
2. Your describe method is not working for android 8.0

codeWithSalmanKhan
Автор

Wow! Thanks a lot! I couldn't find how to change a font, but now... Great! Thanks again😉

ivanrachenchuk
Автор

I have been using a library for my app but this way I think is more suitable and the app overall size also would be kept minimal.
Thanks

kmokhtar
Автор

Thank you! Good Tutorial.
Subscribed! :)

truemlgpro
Автор

Is there a way to change the font of the name of the activity? I mean the text in the top left corner of the activity. Which you can edit in the manifests.

genarflpfangirl
Автор

hello, thanks for your teaching, but i have problem to change the whole font of my app, don't want to define font for each part of, especially for menu items!! could you help me?

tolouk
Автор

Hi thanks i changed my Text Style on main Activity but it not changing second activity Text can you suggest me Please

m.nmirza
Автор

Ok, I have a problem: Android Studio make a warnign "cannot resolve symbol TypeFace" :/ could you help me?

Kami.
Автор

i found trouble when i compile it... it says "content is not allowed in prolog" why?

taufik_sopiyan
Автор

Does it work even with .otf or only .tff?

AleLGB
Автор

Is there a way to add custom fonts without editing the java code? Meaning we import the font file to our project then set it on the xml as an attribute?

nicoqueijo
Автор

oppo a3s need these app whereas you can upload custom fonts instead of using apkeditor to change the font in the app :/

DefinitelyNotMagnus
Автор

some error is coming.... the app is not working after running this code...its crashing I mean Unfortunately stop msg arrives

aakashpardeshi
Автор

Hi, for people whose applications are closed when executing the video code, the solution is to paste the .ttf files directly into the assets folder and delete the fonts folder.
The code would look like this:

private TextView txt1;
     @Override
     protected void onCreate (Bundle savedInstanceState)
{
         super.onCreate (savedInstanceState);
         setContentView (R.layout.activity_forgot);
         txt1 = findViewById (R.id.sms_forgot);
         Typeface typeface = Typeface.createFromAsset (getAssets (), "font1.ttf");
         txt1.setTypeface (typeface);
  }

If even that does not work for you, add this inside android {...} which is inside the build.gradle: app

sourceSets {main {assets.srcDirs = ['src / main / assets /', 'src / main / assets /']}}

jorgemeiser
Автор

very good but how i get text after set typeface to sharing the text with message

مصطفىكاظم-كب
Автор

Thanks it worked fine just needed to find some font .ttf

SamirSamedovsamisgood
Автор

Sir Hindi & English font mixed fon use per video lectures banaiye

uniquemlminfo
Автор

plz help me I want this in kotlin code

M.rbt
Автор

App is getting Crashed :( donno whats wrong

roopeshitagi