如下圖所示。第一張圖片是在http://goldentrail.towardstech.com/assets/images/membersimage/buttons/eat.png鏈接的默認圖片。而它下面的第二圖像是使用UIL圖片上的黑色背景加載了univerisal圖片加載器
加載圖像這是ImageLoader的配置
File cacheDir = StorageUtils.getCacheDirectory(context);
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
.memoryCacheExtraOptions(480, 800) // default = device screen dimensions
.discCacheExtraOptions(480, 800, CompressFormat.JPEG, 75)
.taskExecutor(AsyncTask.THREAD_POOL_EXECUTOR)
.taskExecutorForCachedImages(AsyncTask.THREAD_POOL_EXECUTOR)
.threadPoolSize(3) // default
.threadPriority(Thread.NORM_PRIORITY - 1) // default
.tasksProcessingOrder(QueueProcessingType.FIFO) // default
.denyCacheImageMultipleSizesInMemory()
.memoryCache(new LruMemoryCache(2 * 1024 * 1024))
.memoryCacheSize(2 * 1024 * 1024)
.discCache(new UnlimitedDiscCache(cacheDir)) // default
.discCacheSize(50 * 1024 * 1024)
.discCacheFileCount(100)
.discCacheFileNameGenerator(new HashCodeFileNameGenerator()) // default
.imageDownloader(new BaseImageDownloader(context)) // default
.imageDecoder(new BaseImageDecoder()) // default
.defaultDisplayImageOptions(DisplayImageOptions.createSimple()) // default
.enableLogging()
.build();
這是displayoptions
DisplayImageOptions options = new DisplayImageOptions.Builder()
.bitmapConfig(Bitmap.Config.ARGB_8888) // default
.cacheInMemory()
.cacheOnDisc()
.build();
你在ListView或GridView中顯示圖像嗎?那麼在這裏展示您的RAW文件 – krishna 2013-04-09 05:58:05
原始圖像是在後http://goldentrail.towardstech.com/assets/images/membersimage/buttons/eat.png 的圖像顯示在滾動視圖 – ericlee 2013-04-09 06:09:38
任何幫助???? ??? – ericlee 2013-04-09 08:33:02