Incremental Image Upload

In my application, I need to upload many images for data in a ListView. I do lazy loading and it works pretty fast, but still there is a delay of 1-3 seconds before the first image appears. My studies in delay show that data transfer takes 50% of the time.

Now I believe that if I could do incremental image loading, I could show half the image after 75% of the delay, which is not bad.

I use Drawable.createFromStreamthat uses BitmapFactory.decodeResourceStreaminternally. But even if it receives a stream, it does not draw anything before all the data is loaded and decoded.

Do you know how to load and draw default images using the default Android platform? Or maybe a good independent?

ImageDownloader application screenshot http://1.bp.blogspot.com/_GTM_W5mVPTU/TETLoIzCOaI/AAAAAAAAAIU/1_u5-WwQT_I/s400/thr.png

+3
source share
2 answers

Unfortunately, I cannot answer the question you asked. However, is it possible for you to fill in a thumbnail with reduced quality / reduced or reduced size, or a mannequin / loading image so that the placeholder exists at the time of loading? This is how I work on this in my application.

0
source

For the download process, check out the WebImageView from DroidFu.

0
source

Source: https://habr.com/ru/post/1759669/


All Articles