Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Fonts in Android
Hi How do I add a font file properly in Android Studio?
So far, I have this code:
TextView textView = (TextView)findViewById(R.id.title); Typeface typeFace = Typeface.createFromAsset(getAssets(), "desyrel"); textView.setTypeface(typeFace);
Not sure where to put the font file...I saw some help online that mentioned putting it in an assets folder; I see a folder named that in the intermediaries folder...but do I create the folder somewhere else?
Thanks so much
Oddly, those resources point to an assets folder..which I don't seem to have by default in my project...I found an assets folder in an "intermediaries" folder..but no luck with that..when I put the fonts folder in the res folder and the program barked at me for it...
No, please, treehouse is awesome! So glad for your help...