Redeem Now
Read More
Read now

How to disable the shifting mode from BottomNavigationView android


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.

. . .

Comments (2)

Add Your Comment

  • Shakeel Nawaz
    Wow, great short solution. Thanks
    • Aman Gupta
      You are most welcome.
  • css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again