Skip to content

Instantly share code, notes, and snippets.

@sprejjs
Created August 11, 2017 02:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sprejjs/3dc0bc5b7e4ee1663fdaa9ca511f9e15 to your computer and use it in GitHub Desktop.
Step 5. Update the ViewHolder.
public class ViewHolder extends RecyclerView.ViewHolder {
private TextView nameTextView;
private TextView mobileTextView;
private TextView landlineTextView;
public ViewHolder(@NonNull View view) {
super(view);
this.nameTextView = (TextView)view
.findViewById(R.id.name_text_view);
this.mobileTextView = (TextView)view
.findViewById(R.id.mobile_text_view);
this.landlineTextView = (TextView)view
.findViewById(R.id.landline_text_view);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment