I am new to android.I have a RecyclerView which shows list of images from a json.I want to do showing image full screen when item from RecyclerView clicks.Also it should be able to zoom in and out.(Like gallery).Zooming functionalty is done using Photoview Library.But viewing full screen a item is not done.Adapter class code is attached below.Please anyone help me to do this.
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
final MyHolder myHolder = (MyHolder) holder;
DataFish current = data.get(position);
// load image into imageview using glide
Glide.with(context).load(current.flagimage)
.placeholder(R.drawable.ic_launcher_background)
.error(R.drawable.ic_launcher_background)
.into(myHolder.imageView);
myHolder.imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
I want to add the code for view full screen in this onclick.
follow this steps
LAYOUT
Activity.java
PhotoView
aims to help produce an easily usable implementation of a zooming AndroidImageView
.