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




13 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. 사설토토 This is Kim's second Korean Series appearance. He went hitless in 11 at-bats in 2019, as the Heroes got swept by the Doosan Bears, and Kim doesn't want a repeat of that.

    ReplyDelete
  3. 먹튀검증 "I've not really been a good postseason hitter, but luckily, I've been hitting with a high average this time around," Kim said in a pregame media scrum in the visiting dugout. "I'd like to leave with more fond memories of the Korean Series than 2019."

    ReplyDelete
  4. 토토검증 "When I was in my first postseason, older guys tried to make me feel more comfortable," Kim said. "I really appreciated that and I am trying to do the same and pay it forward."

    ReplyDelete
  5. 슬롯사이트 Kiwoom Heroes second baseman Kim Hye-seong is playing in the South Korean baseball postseason for the fifth straight year. And the 23-year-old has been improving at the plate with each passing series.

    ReplyDelete
  6. 카지노사이트 "I told him, 'Relax. You have someone next to you who's even worse,'" Kim said, referring to himself. "Whee-jip can handle himself, though. I don't really need to tell him that much." (Yonhap)

    ReplyDelete
  7. 먹튀폴리스 He is now hoping he will peak in time for the Korean Series, the championship round in the Korea Baseball Organization (KBO).

    ReplyDelete
  8. 슈어맨 As a six-year vet, Kim falls on the older side on this youthful Heroes team. His double play partner, Kim Whee-jip, is just 20 with just one full season under his belt.

    ReplyDelete