I have tried searching and I wanted help on how I can add Zoom in and out functionalities to Glide. I want to be able to zoom in an image on display and out to normal state when done. How can I do this.
ImageView imageViewPreview = view.findViewById(R.id.image_preview);
Image image = images.get(position);
Glide.with(getActivity()).load(image.getLarge())
.thumbnail(0.5f)
.crossFade()
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(imageViewPreview);
Glide is an image loading library, not a general UI library. Pinch to zoom code would be out of scope. There are a few open source pinch to zoom libraries, like https://github.com/chrisbanes/PhotoView
This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.
Thank you for that clarification.
Most helpful comment
Glide is an image loading library, not a general UI library. Pinch to zoom code would be out of scope. There are a few open source pinch to zoom libraries, like https://github.com/chrisbanes/PhotoView