Skip to content

Instantly share code, notes, and snippets.

@sprejjs
Created August 11, 2017 02:48
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 sprejjs/42e9412b9e38b86c7a7062c22d3b17d1 to your computer and use it in GitHub Desktop.
Save sprejjs/42e9412b9e38b86c7a7062c22d3b17d1 to your computer and use it in GitHub Desktop.
Step 8. Override onBindViewHolder method.
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
Contact contact = contacts.get(position);
holder.nameTextView.setText(contact.getName());
holder.mobileTextView.setText(contact.getMobile());
holder.landlineTextView.setText(contact.getLandline());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment