I have an application which the user can capture images and then send them to the server. I set the image to be as Base64 and then send it to the server.
In the application I have this screens:
- Feed
- Post Screen
- Fullscreen Image (Landscape)
When the user enters to each screen I get from the server a Base64 and decode it to bitmap and set it to be the source of the imageview.
each screen has it's layout. for the feed and post screens I set the imageview width and height to be hardcoded with some dp, and for the fullscreen image I set them to be fill_parent. Now for each imageview I set the scale type to : fitXY, but I see that the pictures are streched and in the fullscreen mode I can see the pixels. I want to set the image to fit the xy but to be smooth as possible
I tried to set the adjustToBound to true and scaleType to cropCenter, fitCenter and etc but it doesn't help.. how can I save the aspect ratio?
android:adjustViewBounds
property – spezzino