Lulus data ke tata letak dari Navigasi Android Studio

NavigationView navigationView = findViewById(R.id.navigation_view);
View v = navigationView.getHeaderView(0);
TextView txv = v.findViewById(R.id.name);
txv.setText("Test");
Stormy Shark