开发者

Incremental loading of images

In my app I need to download a lot of images for data in a ListView. I do lazy loading and it works rather fast, but still there is a 1-3 secs delay before the first image shows up. My research in the delay shows that the data transfer takes 50% of the time.

Now, I believe that If I could do incremental loading of the images, I would be able to show half an image after just 75% of the delay, which is quite good.

I use Drawable.createFromStream which uses BitmapFactory.decodeResourceStream internally. But even though it takes a stream, it doesn't paint anything before all data is d开发者_C百科ownloaded and decoded.

Do you know a way to load and paint images incrementally with the default Android lib? Or perhaps a good independent one out there?

Incremental loading of images

(source: blogspot.com)


Unfortunately, I can't answer the question you asked. However, is it possible for you to populate with a reduced-quality/downsampled or reduced-size thumbnail, or a dummy/loading image so that a placeholder exists while the loading occurs? This is how I work around that in my app.


For the download process, check WebImageView by DroidFu.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜