Android Runtime Exception font asset not found
- Folder's name should be "fonts" and not "font"
- 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...
Use this method :
final Typeface typeface = ResourcesCompat.getFont(context, R.font.X);
ResourcesCompat
class is a compatible way to retrieve your resources.