This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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