1

I am downloading the images from url and storing in android device, I am trying to display the images from my android device to ImageView(all ImageView has different Id's).

My Questions is:

I am downloading the images and trying to display in ImageView but how to get the reference of one ImageView in another ImageView so that there is no need to download the same image again, if I want to display the same Image in more than one ImageView (i.e How should I display the downloaded image from my android device in more than one Image View which has unique Id ?)enter image description here

In the above screen the images of India and Australia are already downloaded and displaying in ImageView but how should I display the images in another ImageView where the other matches of India and Australia are displaying , I don't want to download the same image again and again so how should I use those images in other ImageView?

4

2 回答 2

0

用于Imageloader加载图像和disc-caching. 如果 url 相同,它将不会下载新的。对于imageLoader通过链接ImageLiader

于 2014-05-13T10:33:59.000 回答
0

将具有 unique_id 的图像存储为图像路径。在检索时(获取图像路径),您将仅获得一张具有唯一 ID 的图像。

您的图像路径可能看起来像Flag_[unique_id]. 现在每次您都会获得具有特定路径的相同图像。

于 2014-05-13T10:49:58.903 回答