Skip to content

Instantly share code, notes, and snippets.

@aymenjegham
Last active July 17, 2019 01:44
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/65d6dc254cf3093a5f68ebde0a4f1a1c to your computer and use it in GitHub Desktop.
Save aymenjegham/65d6dc254cf3093a5f68ebde0a4f1a1c to your computer and use it in GitHub Desktop.
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);
textViewTitle.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
imageview1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//apply logic here
}else {
//
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment