how to get all menu locations in wodpress code example
Example: setting navmenu programmatically
navigationView.getMenu().clear();
navigationView.inflateMenu(R.menu.menu_view);
navigationView.getMenu().clear();
navigationView.inflateMenu(R.menu.menu_view);