I had the same problem with inappropriate image when using Picasso and Photoview together.
To solve this problem, I use a callback when loading an image using Picasso using into(view, callback) instead of into(view) . Once the image is uploaded successfully, I create a PhotoViewAttacher or call the update() method.
Here is a sample code:
Callback imageLoadedCallback = new Callback() { @Override public void onSuccess() { if(mAttacher!=null){ mAttacher.update(); }else{ mAttacher = new PhotoViewAttacher(mImageView); } } @Override public void onError() {
Hope this helps. Best wishes.
Carlosph
source share