Android Question [Solved] ZoomImageView - how to keep zoomed ?

derez

Expert
Licensed User
Longtime User
The ZoomImageview is great but I don't know how to keep the image zoom or pan state when the image is supplied by a camera and repeat itself every few seconds.
If I zoom at a certain point - I want it to stay like that in the next picture as well.
I tried to store the layout of the imageview before the next frame and set the imageview to these values after the bitmap is set but it keeps jumping all over.
Any idea ?
 
Last edited:

derez

Expert
Licensed User
Longtime User
If I comment the line "reset" at the end of the "set_bitmap" sub, it does what I need :)
I changed the reset sub to public so I can call it separately.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
Assuming that the images are with similar size, you can replace the image directly:
B4X:
XUIViewsUtils.SetBitmapAndFill(zoom.ImageView, NewBitmap) 'make sure to use latest version of XUI Views.
I saw your answer after I finished testing, your solution works of course :) , thanks.
 
Upvote 0
Top