'How to change the size of text in Bottom navigation android

I want to change the textSize in bottomNavigationView
But could not find any way to do that is there any way to change the textSize of menu item in bottomNavigation



Solution 1:[1]

Create following resource file in res>values>dimens

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <dimen name="design_bottom_navigation_text_size" tools:override="true">12sp</dimen>
    <dimen name="design_bottom_navigation_active_text_size" tools:override="true">12sp</dimen>
</resources>

This will override the attributes of BottomNavigationView

You can also change the textSize in selected and unselected items

Duplicate Custom TextSize of BottomNavigationView support android

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1