How to disable the shifting mode from BottomNavigationView android

Save

Before starting this blog you should know the BottomNavigationView in Android. So First read our previous blog on the BottomNavigationView,

How to use BottomNavigationView in android

 

Ok, You have read the above blog. So we can start now.

Actually, when you use the more then 4 items in BottomNavigationView then Android automatically enable the shift mode.

How to remove or disable this mode

Create a class named BottomNavigationViewHelper

and pass your BottomNavView to this function,

Done. Now run the application and you will find the shift mode has been disabled.

If you have any doubt on this blog, please ask in comments. And stay updated and stay super.

. . .

Leave a Comment

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


4 comments

  • Pragnesh Patel
    Thank You Nice Results
  • Prime
    how to set bottom_navigation and where to set
  • Shakeel Nawaz
    Wow, great short solution. Thanks
    • Aman Gupta (Moderator)
      You are most welcome.
  • css.php

    We've bought a Shopware Extension which is a hybrid App, which we can now offer in the Google Play Store and the IOS App Store. I'am still impressed how fast and how sharp the support team leads us through every process of the App-Store clarification. Very fast and useful response.

    Markus Walter

    Markus Walter

    Founder, Das Apartment Living

    Talk to Sales

    Global

    Live Chat
    Start a Project


      Message Sent!

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

      Back to Home