Skip to content

Instantly share code, notes, and snippets.

@fnzainal
Created November 27, 2015 13:27
Show Gist options
  • Save fnzainal/03772e85c2ab5b1053d6 to your computer and use it in GitHub Desktop.
Save fnzainal/03772e85c2ab5b1053d6 to your computer and use it in GitHub Desktop.
Get id view on header Navigation Drawer
View header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null);
navigationView.addHeaderView(header);
strUid = (TextView)header.findViewById(R.id.tvUsername);
strUid.setText(uid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment