Bottom Navigation Bar: Text size is increasing on pressing?

Lewis Black picture Lewis Black · Nov 27, 2017 · Viewed 10.1k times · Source

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?

Answer

Mitesh Vanaliya picture Mitesh Vanaliya · Nov 27, 2017

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>