Currently I'm using the pixlui library to use custom fonts, and it's great! https://github.com/neopixl/PixlUI
Is there any way to preview the custom fonts in Android Studio?
If you are using Android Studio 3.5+, Changing the font is super simple. Select the text widget on the Design view and check the font family on Attribute Window. The value dropdown contains all the available fonts from which you can select one. If you are looking for Google Fonts, Click the More Fonts option.
I have created a Library called Smart Fonts for Android. It allows you to preview the custom fonts in the Layout Editor of Android Studio.
The fonts are cached in memory so that they are loaded once.
Smart Fonts is easy to integrate with gradle, it is documented and available on GitHub:
https://github.com/smart-fun/SmartFonts
enjoy!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With