Như hình bên dưới. Hình ảnh đầu tiên là hình ảnh mặc định được liên kết tại http://goldentrail.towardstech.com/assets/images/membersimage/buttons/eat.png. trong khi hình ảnh thứ hai dưới nó là hình ảnh được nạp bằng UILNền đen trên hình ảnh được tải bằng trình tải hình ảnh chưa phân phối
Đây là cấu hình 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();
đây là displayoptions
DisplayImageOptions options = new DisplayImageOptions.Builder()
.bitmapConfig(Bitmap.Config.ARGB_8888) // default
.cacheInMemory()
.cacheOnDisc()
.build();
Bạn có đang hiển thị hình ảnh trong ListView hoặc GridView ?? Sau đó hiển thị tệp thô của bạn tại đây – krishna
hình ảnh thô có tại http://goldentrail.towardstech.com/assets/images/membersimage/buttons/eat.png Hình ảnh được hiển thị trong một scrollview – ericlee
bất kỳ trợ giúp nào ???? ??? – ericlee