Changing font globally

Hi there

Does anyone have experience with changing fonts in an android app?
My customer wants to have his custom font included globally in the app. What I dont want to do is subclassing all the used views that i need (Buttons, TextViews ... ) and change the font in this subclass.

My approach that works with API < 21 is based on this post:
The problem is that it uses reflection, which is not very elegant....and that it does not work anymore with API >= 21.

I would appreciate any help or hint.



Best Answer


  • NielsCupNielsCup NLMember ✭✭✭

    @FabianEriksson Could you share some code?

Sign In or Register to comment.