After updating to Android Studio 3 and using the latest SDK and build tools there is a feature to add fonts to the
fonts folder under resources and use it directly in xml or java. I’m using this code in my theme in
styles.xml to apply theme on my whole application
it’s working on
TextView, and pretty much everything except
Switch widgets. I even tried
fontFamily on my
Switchs but it’s not working either. How can i fix it?
Currently it is not possible to set fonts on CheckBoxes (and some other widgets) with font resources via XML.
You can do it programmatically instead:
This issue has been reported on the Android bug tracker, star it to get it fixed soon: https://issuetracker.google.com/issues/63250768