I have used Calligraphy library to change the font of entire application. Every thing works fine until I decided to change the text size of navigation drawer. I have defined the following style which is used as app:itemTextAppearance
of NavigationView
. Now the text size is changed but uses the default system font. This is my style for TextAppearance
:
<style name="NavDrawerTextStyle" parent="android:TextAppearance">
<item name="android:textColor">@color/colorPrimaryDark</item>
<item name="android:textSize">16sp</item>
</style>
I also tried to define the font using fontPath
in the style but still no luck.