Android Question Images

omoba

Active Member
Licensed User
Longtime User
I have a portrait mode image (located in File.DirAssets) that displays fine on my device in portrait mode, when the device is flipped to landscape mode the image gets compressed/distorted.

I have seen in some apps that when the device is flipped to landscape mode the image "enlarges" and section of the image is displayed, to see the rest of the image you just "scroll" the screen.

In other words, the image keeps the portrait mode when the device is in landscape mode and you see sections of the image at a time.

I am currently using imageview to display the image --should I be using something else?.

Please, how can I achieve this?
 

sorex

Expert
Licensed User
Longtime User
you can use a scrollview and set the inner panel height in landscape to 200%y and in portrait to 100%y.

then proportionally resize the image to fit the innerpanel height.
 
Upvote 0
Top