Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 787
Lewis Black Avatar asked Nov 27 '17 12:11

Lewis Black


People also ask

How do you change the text size in bottom navigation in flutter?

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.


1 Answers

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>
like image 126
Mitesh Vanaliya Avatar answered Oct 12 '22 10:10

Mitesh Vanaliya