How to set custom font in a TextView? - ANDROID - Helper

Wednesday, October 17, 2018

How to set custom font in a TextView?


Well, It is very easy to change the font of a TextView. Just follow the steps given below.

1. Create a folder "font" in the res folder (if not exists)
2. Copy & Paste the font <yourfont.ttf> in the res/font folder
3. Set it in font family attribute just like below
android:fontFamily="@font/<yourfont.ttf>"




No comments:

Post a Comment