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.
Is there a way to remove this so the word 'tournaments' stays the same size?
There is a property selectedFontSize on the BottomNavigationBar . You can use this one. Simply set the size (interger) to the desired value. Additionaly; there is also a unselectedFontSize on the BottomNavigationBar , ther you can set all the title-fontsize attonce to the desired size.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With