Inflate Bottom Navigation View menu programmatically

前端 未结 2 1397
臣服心动
臣服心动 2020-12-17 16:24

Bottom Navigation View has been added to version 25 of the Design Support Library. Tried and it\'s much easier to use now.

But I am facing problem implementing it a

2条回答
  •  时光取名叫无心
    2020-12-17 17:07

    navigationView.getMenu().clear(); //clear old inflated items.
    navigationView.inflateMenu(R.menu.new_navigation_drawer_items);
    

    from this answer

提交回复
热议问题