1

I am working on a webview app, I want a bottombar like opera, uc browser. When I use bottomnavigationview, and add a menu.

my bottomnavigation view

my bottomnavigation view

like above. It takes the first element as clicked and uses shift mode.

I searched a lot after that I got this: https://montemagno.com/remove-shifting-bottomnavigationview-android/

they disable shift mode, but I just want items to behave like imagebuttons. back to the same state after a click.

How to do that??

Vidhi Dave
  • 5,614
  • 2
  • 33
  • 55
c49
  • 360
  • 1
  • 7
  • 18
  • https://stackoverflow.com/questions/44673656/getting-back-the-old-bottombar/44673753#44673753 – AskNilesh Sep 12 '18 at 06:47
  • Try this: https://stackoverflow.com/a/44342585/8089770 In this there is code of shift mode as well. try and let me know if any error – Vidhi Dave Sep 12 '18 at 06:49
  • Thanks...I am going to check this. But now I found that bottomnavigationview should not use for simple tasks in material guidelines. What to do ? – c49 Sep 12 '18 at 12:25
  • can not resolve setShiftingMode(false) error. What to do? – c49 Sep 12 '18 at 13:33

0 Answers0