This is my ImageViewHolder that I have mentioned in my adapter class
public static class ImageTypeViewHolder extends RecyclerView.ViewHolder {
TextView imageCard_Title,imageCard_Description;
public ImageView imageCardView;
public ImageTypeViewHolder(View itemView) {
super(itemView);
imageCard_Title=itemView.findViewById(R.id.imagecard_title);
imageCard_Description=itemView.findViewById(R.id.imagecard_description);
imageCardView=itemView.findViewById(R.id.imagecard_picture);
}
}
This is the segment of code written in my onBindViewHolder
((ImageTypeViewHolder) viewHolder).imageCard_Title.setText(modelObject.getImageCardTitle());
((ImageTypeViewHolder) viewHolder).imageCard_Description.setText(modelObject.getImageCardDescription());
((ImageTypeViewHolder) viewHolder).imageCardView.setImageResource(modelObject.getImageCardUrl());
I want to create an option which creates a fullscreen view of the imageview which is a part of the RecyclerView item.
This is the code segment in the activity where i'm adding the imagecard element :
chatList.add(new OustChatModel(1,
"Sample Image Card",
R.drawable.app_icon,
"sample description"));
I would like to know what do I do to add a operation that allows the imagecard view to open in a full screen view.
Thanks in advance