
Android Downloadable Fonts
Using Google Fonts in XML and programmatically
This article was first published on developerlife.com.
As of Android API level 27, there are too many ways to load custom fonts in Android apps. This article will show you how to use downloadable fonts (from Google Fonts) using the latest support library, which is very similar to the way one would use fonts in HTML and CSS.
Android Oreo introduced the use of defining custom fonts in XML that can be seamlessly used in your XML layout files. While this is a great feature, in order to use it you have to set your minSdkVersion
to Oreo. 😠
Android Support Library 26 takes this Oreo feature to the next level by adding the ability to download fonts from Google Fonts using Google Play Service. And it backports this feature to API versions 14 and higher! 👍
Read the full article here: https://developerlife.com/2017/12/02/android-downloadable-fonts/