How to change the size of BottomNavigationView icons

Updated 13 January 2018

Save

BottomNavigationView is a class which is used in Android to provide user a better and easier way to switch between the top-level views in a single tap. I am assuming that you are aware of BottomNavigationView, If you are not then I suggest you go through the below-provided blog link to better understand this blog. We will be directly discussing the modifications that will be needed to change the icon size.

How to use BottomNavigationView in android

 

Let us now discuss the changes needs to be done in order to change the icon size.

To change the icon size you need to pick every icon individually and set its size. You can do this using a for loop to adjust all sizes or you can change the size of a particular icon to create your custom effect.

Below is the code segment which will help you understand the changes that need to be done and how can you pick the icons.

You can set the size according to your need and it will work like a charm.

Thank you very much. This is Vedesh Kumar signing off.

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home