Rene GensAuthorBlogUsesNotesGitHubLinkedIn

Custom fonts everywhere

20 April, 2018 - 1 min read

Recently we got custom fonts on Android. So an easy to way to change all the fonts is inside the style.xml, for example if the defined font is this

android:fontFamily="@font/montserrat_medium"

We would use it like this:

<style name="TextViewStyle" parent="android:Widget.TextView"> 
    <item name="android:fontFamily">@font/montserrat\_regular</item> 
</style>

Check some other Android posts on the blog, I hope they will help.

© 2020, Built with Gatsby