Skip to content

Instantly share code, notes, and snippets.

@aymenjegham
Created July 17, 2019 01:24
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 aymenjegham/e55632787ff1b30944a7eb95148f9503 to your computer and use it in GitHub Desktop.
Save aymenjegham/e55632787ff1b30944a7eb95148f9503 to your computer and use it in GitHub Desktop.
public class ContactAdapter extends RecyclerView.Adapter<contactAdapter.ContactHolder> {
class ContactHolder extends RecyclerView.ViewHolder {
private TextView textViewTitle;
private TextView numone;
private TextView numtwo;
private TextView numthree;
private TextView numfour;
private ImageView imageview1,imageview2,imageview3,imageview4;
public ContactHolder(View itemView) {
super(itemView);
textViewTitle = itemView.findViewById(R.id.text_view_title);
numone = itemView.findViewById(R.id.numone);
numtwo=itemView.findViewById(R.id.numtwo);
numthree=itemView.findViewById(R.id.numthree);
numfour=itemView.findViewById(R.id.numone2);
imageview1=itemView.findViewById(R.id.phoneiv2);
imageview2=itemView.findViewById(R.id.phoneiv);
imageview3=itemView.findViewById(R.id.phoneiv1);
imageview4=itemView.findViewById(R.id.phoneiv3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment