I am adding item in navigation view programmatically but I have to add itemTextColor programmatically
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
navigationView.setNavigationItemSelectedListener(this);
final Menu menu = navigationView.getMenu();
for (int i = 1; i <= 3; i++) {
menu.add("test" + i);
}
When clicking on a particular item it's color change and remains the same color. For e.g: When a user opens the drawer and click on a particular item it changes color and remains(same color) still another item click.