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




8 comments:

  1. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks custom writings

    ReplyDelete
  2. This is one awesome blog.Really thank you! customwritingservice

    ReplyDelete
  3. There are lots of people who wonder precisely just what a Los Angeles real estate guide does. Real-estate consultants perform wide variety of different tasks it support los angeles

    ReplyDelete
  4. a resource wealthy, highly experienced in-house group of experts is no further useful or charge effective. Managed IT Services

    ReplyDelete
  5. This is very helpful to me ...! I am working on a project on games and apps for my
    HapMod store.

    ReplyDelete