Search code examples
androidandroid-custom-viewandroid-fonts

how to apply custom font in all of widgets in android (actionbar,drawer and any text) without using any third party library?


I want to apply custom font in whole application widget(ActionBar,Navigation Drawer,Tabs,Toolbar,Toast) text without using any third party library so how can I achieve this? any way to got this.

Custom font in android application Widget(Actionbar,Drawer,etc.) Text without any third party .


Solution

  • Till now,
    There is no way to apply global font to all the TextView throughout whole App using Android APIs, though Android O introduces a new feature, Fonts in XML, which lets you use fonts as resources.

    Refer this link to Learn more

    If we talk about libraries, there is most famous that can do the trick for you. Check this out - Calligraphy. Github page have better explanation about how you use and how things works behind.