1NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
2View headerView = navigationView.getHeaderView(0);
3TextView navUsername = (TextView) headerView.findViewById(R.id.navUsername);
4navUsername.setText("Your Text Here");
5