I'm using TouchImageView (https://github.com/MikeOrtiz/TouchImageView) to show bitmap in full screen. When I put the normal bitmap:
touchImageView.setImageBitmap(bm);
If a user double tap or 2 finger-pinch-zoom the picture zooms but the TouchImageView width/height stays the same.
When i put bitmap that is bigger then the screens width/height everything works as expected :
Bitmap new_bm = Bitmap.createScaledBitmap(bm,
more_px_then_screen_width, more_px_then_screen_height, false);
touchImageView.setImageBitmap(bm);
Here is the xml:
<TouchImageView
android:id="@+id/picture_full_screen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
Please Help !