0

I was trying to add 5 items to the bottom navigation view , But when i add icons the view get collapse . each icon doesn't get ideal width which means the same width . please refer to the image , Any reason for this ? enter image description here

Edited :- This seems like the default behaviour, If i press on something the button gets the focus

enter image description here

But is it possible to show it like iOS which means each tab having the same width ?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Mr.G
  • 1,275
  • 1
  • 18
  • 48

1 Answers1

0

In the bottom navigation material design specs there is a section describing "fixed" vs "shifting" modes

While this doesn't appear in the official bottom navigation view documentation (ahem google), if you look at the source code you will see that there is the ability to set the "Shifting Mode" both via xml and java.

Please note that I haven't tried this and am basing it on the source code alone.

MidasLefko
  • 4,499
  • 1
  • 31
  • 44
  • Thank you for the reply but i tried to search the source but its not available using 26 version – Mr.G Oct 18 '17 at 10:33
  • but i found this https://stackoverflow.com/questions/40972293/remove-animation-shifting-mode-from-bottomnavigationview-android – Mr.G Oct 18 '17 at 10:36