Search code examples
androidmaterial-components-androidnavigationview

How to change SUBTITLE textAppearance in NavigationView?


How to change SUBTITLE textAppearance in NavigationView? For NavigationView material component. Here is the documentation: https://material.io/components/navigation-drawer/android#anatomy I think there is no way to change it, but let's give it a try.


Solution

  • I was following theming from here: https://material.io/components/navigation-drawer/android#anatomy

    Only overriding style changed the subtitle text appearance:

    <style name="TextAppearance.AppCompat.Body2">
            <item name="fontFamily">@font/montserrat_light</item>
            <item name="android:fontFamily">@font/montserrat_light</item>
            <item name="android:textColor">@color/colorRed</item>
    </style>