English 中文(简体)
网上图像目录
原标题:Android Listview with web images caching

I have an ASync task that D/L the images for the list view. Have the listview and the listview adapter implementation working fine.

My question is: After D/L the images from the web... 1. Should I save it into a temporary directory and load it from there? OR 2. Should I keep it in memory? But in this case might consume lots of memory since the list size can be big. 3. If I have an image that was U/L before to the server, I need to show it in the listview as a small image (sample?). Should I jsut put the image in the imageview? Should I process the image and scale it?

Yoav

问题回答

我会把图像保存在一张黑白中。 这意味着,如果监督厅记忆不佳,就会释放这些图像。 此外,你可以将其留给SD卡,这样,当图像必须重载时,图像就会更快。 https://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-inlistview” 清单中一些新内容的图像装载量。

大力建议对图像进行增量。





相关问题
Write-though caching of large data sets in WCF?

We ve got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

how to tell clicking "back" to load cache?

I would like for my site when someone clicks "Back" or "Forward" for the server to tell the browser to load the cache instead of reloading the entire page. I ve tested some headers and done research, ...

java plugin cache and dynamic IP host

I m trying to use Amazon S3 and Amazon Cloudfront CDN to deliver the jar files of my applet application. I m seeing several cache misses of my jars by the java plugin. This is a show-stopper for me, ...

Frequently Used metadata Hashmap

Are there any implementations of a static size hashtable that limits the entries to either the most recently or most frequently used metadata? I would prefer not to keep track of this information ...

PHP - Memcache - HTML Caching

I would like to create a caching system that will bypass some mechanisms in order to improve the performance. I have some examples: 1-) I have a dynamic PHP page that is updated every hour. The page ...

Performance of Sql subqueriesfunctions

I am currently working on a particularly complex use-case. Simplifying below :) First, a client record has a many-to-one relationship with a collection of services, that is, a single client may have ...

热门标签