title: How to set text to view from drawer header layout in navigation drawer without inflating view
body: <p>I want to set text to the navigation drawers headers text, I searched a lot but everyone does it by inflating a layout but for me it creates 2 headers so is there any way to set it without inflating the layout?</p>
  
  <pre><code>NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
  
  View header=navigationView. findViewById(R.id.header);
  /*View        view=navigationView.inflateHeaderView(R.layout.nav_header_main);*/
  name = (TextView)header.findViewById(R.id.username);
  email = (TextView)header.findViewById(R.id.email);
  name.setText(personName);
  email.setText(personEmail);`
  </code></pre>