Skip to content Skip to sidebar Skip to footer

Touchimageview Doesn't Show Image Until After A Pinch Gesture

I'm using the custom view TouchImageView. However, when I set the bitmap it doesn't show the image unless I do a pinch gesture on it. public class PhotoOverlayActivity extends AppC

Solution 1:

After calling

mImageView.setImageBitmap(yourBitmap);

do

mImageView.setZoom(1f);

Another option would be to modify the source code to do the same thing since the TouchImageView class is contained in your project anyway.

Thanks to this post for the idea.

Post a Comment for "Touchimageview Doesn't Show Image Until After A Pinch Gesture"