How to zoom into an imageView?

I'm looking for the implementation of an internet zoom but I don't think so. I found only one zoom that is applied to the whole image. I needed this default zoom that has in most applications that allows you to zoom to any point of the image. Does anyone know how to implement this? Thank you right now.

Author: daniel12345smith, 2016-01-20

1 answers

Look there is this lib here

ImageView mImageView;
PhotoViewAttacher mAttacher;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    // Any implementation of ImageView can be used!
    mImageView = (ImageView) findViewById(R.id.iv_photo);

    // Set the Drawable displayed
    Drawable bitmap = getResources().getDrawable(R.drawable.wallpaper);
    mImageView.setImageDrawable(bitmap);

    // Attach a PhotoViewAttacher, which takes care of all of the zooming functionality.
    mAttacher = new PhotoViewAttacher(mImageView);
}


// If you later call mImageView.setImageDrawable/setImageBitmap/setImageResource/etc then you just need to call
attacher.update();
 3
Author: Deivison Francisco, 2016-01-20 13:12:12