Glide: Adding Zoom in Zoom out to Glide

Created on 10 May 2018  路  3Comments  路  Source: bumptech/glide

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);

question

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

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kenneth2008 picture kenneth2008  路  3Comments

billy2271 picture billy2271  路  3Comments

technoir42 picture technoir42  路  3Comments

ghost picture ghost  路  3Comments

Tryking picture Tryking  路  3Comments