Hi:
Add Xui library, declare the imageview as B4XView and use
There is a problem with this, If the image is not square and it was loaded using xui.LoadBitmapResize then when you rotate it lops off part of the the image.
Edit: Statement above is not accurate, HOWEVER it you have the imageview top at 0 or left at 0 it won't automatically move the control to stay inside the container and will lop off part of the picture.
This is how it loads.
This is after rotating. Note that is still says the imageview Top is 0 but it is cutting off the top of the picture. If I move the imageview down it is all there.
I test this with the Imageview anchor set to all three configuations Top and left, bottom and right and Centered and always got the same results.