Android Runtime Exception font asset not found

后端 未结 13 841
执念已碎
执念已碎 2021-01-04 01:11

Here is my code and screenshot I\'m trying to set custom font typeface but Runtime exception occurs font asset not found while font file is in asset folder. Am I missing som

13条回答
  •  旧巷少年郎
    2021-01-04 01:46

    1. Folder's name should be "fonts" and not "font"
    2. Note that your "fonts" folder is located under your "assets" folder (which should be located under your "main" folder and not your "res" folder) It took me way too long to figure this one out...

提交回复
热议问题