BottomNavigationView - How to uncheck all MenuItems and keep Titles being displayed?

后端 未结 10 1339
面向向阳花
面向向阳花 2020-12-18 19:33

As I liked the design from BottomNavigationView I decided to implement a new Menu for my App with it, instead of just using simple buttons.

I took this

10条回答
  •  -上瘾入骨i
    2020-12-18 19:52

    Try this, it worked for me

     
    

    and set

    bottomNavigationView.getMenu().findItem(R.id.uncheckedItem).setChecked(true);
    

    you get all menu item view as unselected; since the selection is given for uncheckedItem which is invisible

    Hope it helped you.

提交回复
热议问题