Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@janishar
Last active August 22, 2016 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janishar/4b80f52c910de46c73ef8c3a7f410eec to your computer and use it in GitHub Desktop.
Save janishar/4b80f52c910de46c73ef8c3a7f410eec to your computer and use it in GitHub Desktop.
@NonReusable
@Layout(R.layout.drawer_header)
public class DrawerHeader {
@View(R.id.profileImageView)
private ImageView profileImage;
@View(R.id.nameTxt)
private TextView nameTxt;
@View(R.id.emailTxt)
private TextView emailTxt;
@Resolve
private void onResolved() {
nameTxt.setText("Janishar Ali");
emailTxt.setText("janishar.ali@gmail.com");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment