Assets folder in Android Studio?
问题 Im trying to use a custom font, and I've read that I suppose to place the fonts in assets/fonts. I'm using Android Studio and it doesn't seem like I have a assets folder. So I created one. But my app crashes when I place the assets folder in src/main. Im using this code to load my fonts. Typeface fontRegular = Typeface.createFromAsset(getAssets(), "fonts/DroidSans.ttf"); Typeface fontBold = Typeface.createFromAsset(getAssets(), "fonts/DroidSans-Bold.ttf"); myDeviceModelTxt.setTypeface