Design + Code an Android App from Scratch
Scrounge up some loose change to become a pro member, or login to your account to view this lesson.
Alright, join now. Or login to your account if you're already a pro member.This video shows how to add a custom font in Android by placing the font files under the assets folder. In the first fix, we add a ScrollView to ensure the Dialog doesn’t go off the screen in landscape mode. In the next fix, we override the dimes.xml for different screen width qualifiers to ensure the widget looks appropriately sized on different class of devices. Finally we use the Typeface.createFromAsset method wherever required to load our custom font from the assets folder and use it across the different TextViews.