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
If you have a layout in navigation drawer menu as an item and you want to change it programmatically, this code snippet will help you:
MenuItem nav = navigationView.getMenu().findItem(R.id.nav_close_app); nav.setActionView(R.layout.item_navigationdrawer_close_app);