Tuesday, September 11, 2018

Android Studio: How to use custom font in an Android project

Step 1: Right-click the res folder and go to New > Android Resource Directory.

Step 2: From Resource type list, select font, and then click OK.

Step 3: Copy your font files (.ttf) and paste it in the font directory created in Step 2. (file name of the fonts should must contain only lowercase a-z, 0-9, or underscore)

Step 4: Now you can assign your font in the xml file using @font/font_name




9 comments:

  1. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. WordPress Developer Brisbane

    ReplyDelete
  2. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.
    토토사이트

    ReplyDelete
  3. I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.
    파워볼사이트

    ReplyDelete
  4. Thank you for some different informative blog. Wherein else may want to I am getting that kind of facts written in such an ideal approach? I have a challenge that I’m simply now operating on, and i have been on the appearance out for such records.
    Roof Restoration Adelaide

    ReplyDelete
  5. Please take good care of me from now on.Thank you. Plz answer back as I’m looking to construct 먹튀사이트

    ReplyDelete
  6. I'm surprised there's such a wonderful article. We promise to do our This is a pure nice post. 먹튀신고

    ReplyDelete
  7. good of which you’re so good currently Thanks on your marveous posting! Greetings! 보증업체

    ReplyDelete
  8. This is one very interesting post. I like the way you write and I will bookmark your blog to my favorites.메이저놀이터

    ReplyDelete
  9. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts.먹튀검증사이트

    ReplyDelete