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




27 comments:

  1. On this page you can read my interests, write something special. 토토사이트

    ReplyDelete
  2. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! 토토사이트

    ReplyDelete
  3. I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! 먹튀검증

    ReplyDelete
  4. Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. 꽁머니 환전

    ReplyDelete
  5. The way you write, you are really a professional blogger. YesMovies

    ReplyDelete
  6. Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next.. 토토사이트

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject. 토토커뮤니티

    ReplyDelete
  9. howdy, your websites are really good. I appreciate your work. 토토사이트

    ReplyDelete
  10. This article is an appealing wealth of useful informative that is interesting and well-written. I commend your hard work on this and thank you for this information. I know it very well that if anyone visits your blog, then he/she will surely revisit it again. Lottery Sambad

    ReplyDelete
  11. The way you write, you are really a professional blogger. Y-Ymovies

    ReplyDelete
  12. Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject. ufabet

    ReplyDelete
  13. 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. บาคาร่า

    ReplyDelete
  14. Look & Feel Your Best With Our Top-Rated Men's Salon.Bridal Packages In Karachi

    ReplyDelete
  15. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. 오피아트

    ReplyDelete
  16. Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. 먹튀검증업체

    ReplyDelete
  17. I can’t imagine focusing long enough to research; much less write this kind of article. You’ve outdone yourself with this material. This is great content. ริ้วรอย

    ReplyDelete
  18. I really like your writing style, great information, thankyou for posting. ไฮยาลูรอน

    ReplyDelete
  19. Kbc Economic achieving success 2022 proving according to simple fact Kaun Banega Crorepati Fortuitous.kbc lottery winner.Kbc lottery winner

    ReplyDelete
  20. I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers ufabet

    ReplyDelete
  21. Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. Fastwork

    ReplyDelete
  22. Tahir termite service – TTS® is the largest independently owned pest control company in Lahore, Pakistan.Pest Control Service Lahore

    ReplyDelete
  23. Effective and reliable protection for your teeth The brush handle fits perfectly in the hand, is slim and beautifully made.Fitted sheets

    ReplyDelete
  24. Salon is now proud to offer complete range of hair styling, facial skincare treatments and body hair removal services for men.Haircut Cost Near Me

    ReplyDelete
  25. Kbc Lottery Winner 2022 list for information online like Kaun Banega Crorepati Lucky draw Winners 2022.Jio lottery office number 2022.

    ReplyDelete
  26. The bedroom is the ultimate place to relax and get comfortable.Duvet set cover Pakistan

    ReplyDelete