D
D
Dmitry Chizhov2015-04-27 12:23:36
Android
Dmitry Chizhov, 2015-04-27 12:23:36

How to properly stretch an image to fit the entire imageview?

Hello.
The task is this: to stretch the preview to the full screen while maintaining the proportions until it is fully loaded and the full-size image is displayed. An example of a VK application, or Google image search. when you click on the image, it displays poor quality (stretches the preview), after loading it changes to a good one.
For loading and displaying I use universalImageLoader.
Googled for a long time. There were decisions to set the image as a background (resource-intensive), to scale the preview to a larger size (resource-intensive), they also talked about the adjustResize parameter. It seems that the last option is ideal, but it didn’t work out to reproduce the aoka, perhaps because of uim. Please tell me how to achieve the task correctly, and in what ways to do it correctly? I would appreciate examples.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-05-07
@cry_san

Maybe this: preloading-some-images-for-listview-with-universal...
And here's another (just another library): ImageLoading

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question