Search code examples
androidbottombar

How to increase distance between items in BottomBar?


I want to make exactly the same, bottom bar with floating action button. I have used standart BottomNavigationView as well as this library, but I can't increase the distance between items. Is there a way to do that?

enter image description here

enter image description here


Solution

  • Add a fifth item to your bottom navigation. Give it an empty string for its label and a completely transparent image for its icon. Also make it disabled. Put this item in the middle position.

    The visual effect will be that there's no item in the center of the screen, and the rest of the buttons should be spaced nicely around the floating action button.