Search code examples
androidandroid-support-librarybottomnavigationview

How to increase Bottom Navigation View height along with its icon and text sizes in android?


I am using

compile 'com.android.support:design:25.0.0'

Android Bottom Navigation View and its height is is fixed and tiny icons with small text are shown. My question is how can i increase their sizes? I've tried to change size in xml file through style... all other properties are working except textsize property.

Can i do that pragmatically if so, then please write a code


Solution

  • I've found a solution to override some dimen values in dimens.xml file it works for the text size but icon still remains tiny. Here is how i do that. Hope this code will help others too :-)

    <!-- Overriding Default Bottom Navigation sizes-->
        <dimen name="design_bottom_navigation_text_size" tools:override="true">16sp</dimen>
        <dimen name="design_bottom_navigation_active_text_size" tools:override="true">20sp</dimen>
        <dimen name="design_bottom_navigation_height" tools:override="true">70dp</dimen>