Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active August 11, 2018 13:04
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 jezinka/4e44e51340c74e075e889a38c510aeb4 to your computer and use it in GitHub Desktop.
Save jezinka/4e44e51340c74e075e889a38c510aeb4 to your computer and use it in GitHub Desktop.
class ViewHolder extends RecyclerView.ViewHolder {
TextView label;
TextView temperature;
(...)
ViewHolder(View itemView) {
super(itemView);
label = itemView.findViewById(R.id.label_tv);
temperature = itemView.findViewById(R.id.temperature_tv);
(...)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment