Search code examples
javaandroidmaterial-designbottomnavigationview

Bottom Navigation Bar: Text size is increasing on pressing?


I am using the Bottom Navigation Bar in Android. By default when I select an item the text size of the label of that item increases. As seen here by the 'tournaments' label.

enter image description here

enter image description here

Is there a way to remove this so the word 'tournaments' stays the same size?


Solution

  • Try to add this code in dimens.xml file

    <dimen name="design_bottom_navigation_text_size" tools:override="true">10sp</dimen>
    <dimen name="design_bottom_navigation_active_text_size" tools:override="true">10sp</dimen>