I have the new Navigation Drawer in my app and I want to change the navigation view menu items title text dynamically from code. I have watched many posts but I can\'t figure ou
Change the code like below in case you rename or remove item from navigation menu drawer list
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
if (navigationView != null) {
Menu menu = navigationView.getMenu();
menu.findItem(R.id.nav_profile).setTitle("My Account");
menu.findItem(R.id.nav_mng_task).setTitle("Control Task");
//menu.findItem(R.id.nav_pkg_manage).setVisible(false);//In case you want to remove menu item
navigationView.setNavigationItemSelectedListener(this);
}