A custom view that shows an image and allows the user to zoom and pan the image.
Instructions:
- Add with designer.
- Call SetBitmap.
Updates:
v1.05 - Base_Resize is public. Call it after resizing the view in B4A.
v1.04 - Fixes an issue in B4i where the image jumps when switching from pinch gesture to pan gesture.
v1.03 - Fixes an issue with the click event.
v1.02 - Removed the loading of Picture1.png which was left by mistake.
v1.01 - Fixes an issue with old Android devices.
More sophisticated view that can handle huge images: https://www.b4x.com/android/forum/threads/b4x-hugeimageview-show-very-large-images.132905/#content
Tip: simplest way to add ZoomImageView is with SMM: [B4X] SimpleMediaManager (SMM) - framework for images, videos and more
Instructions:
- Add with designer.
- Call SetBitmap.
Updates:
v1.05 - Base_Resize is public. Call it after resizing the view in B4A.
v1.04 - Fixes an issue in B4i where the image jumps when switching from pinch gesture to pan gesture.
v1.03 - Fixes an issue with the click event.
v1.02 - Removed the loading of Picture1.png which was left by mistake.
v1.01 - Fixes an issue with old Android devices.
More sophisticated view that can handle huge images: https://www.b4x.com/android/forum/threads/b4x-hugeimageview-show-very-large-images.132905/#content
Tip: simplest way to add ZoomImageView is with SMM: [B4X] SimpleMediaManager (SMM) - framework for images, videos and more
Attachments
Last edited: