2

So I am trying to implement this little thing instagram-like.
Any idea in how can I do it?
I have a list view that uses a custom layout for displaying some posts in my app.

I want to be able to pinch photos in order to zoom simillar to the example below.
I am using the photo attacher to zoom currently, the problem is the photo can't exceed the initial size of the image View.

In example:

enter image description here

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Lucian Comșa
  • 51
  • 1
  • 4

1 Answers1

1

I would recommend this library:

PhotoView

You just have to create an attacher and "attach" it to your ImageView.

// Attach it like the following......after getting your image
PhotoViewAttacher yourAttacher = new PhotoViewAttacher(yourImageView);
Mohammad Zarei
  • 1,773
  • 14
  • 33
  • 1
    that is the one I am using and thanks for answering. It works to some extent, the image gets zoomed in. However, the effect I am trying to achieve is that instead of zooming the image and keeping the imageView the same width/height I would like to increase the size of the imageView. Try to pinch a photo to zoom in on instagram, the photo gets bigger until it covers the entire screen. – Lucian Comșa Nov 21 '17 at 17:38