我開始使用通用圖像加載程序代替畢加索,以避免圖像未加載問題。現在它也出現在Universal Image Loader中。這是同一個獨特的圖像相同的問題,但不是其他圖像。通用圖像加載程序未加載特定鏈接的圖像
有問題的圖片:
http://luxproperty.kaytami.com/platform/media/image/jpeg/2015/01/4_4.jpg
其他適當乖圖像:
http://luxproperty.kaytami.com/platform/media/image/jpeg/2015/01/4.2_4.jpg
http://luxproperty.kaytami.com/platform/media/image/jpeg/2015/01/4.3_4.jpg
http://luxproperty.kaytami.com/platform/media/image/jpeg/2015/01/4.4_4.jpg
它們的尺寸相似。而關於我的通用圖像裝載機,該設置是這樣:
在應用:
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
.threadPriority(Thread.NORM_PRIORITY - 2)
.denyCacheImageMultipleSizesInMemory()
.diskCacheFileNameGenerator(new Md5FileNameGenerator())
.diskCacheSize(50 * 1024 * 1024) // 50 Mb
.tasksProcessingOrder(QueueProcessingType.LIFO)
.build();
// Initialize ImageLoader with configuration.
ImageLoader.getInstance().init(config);
在活動:
DisplayImageOptions options = new DisplayImageOptions.Builder()
.showImageOnLoading(R.drawable.image_placeholder)
.showImageForEmptyUri(R.drawable.image_error)
.showImageOnFail(R.drawable.image_error)
.cacheInMemory(true)
.cacheOnDisk(true)
.considerExifParams(true)
.build();
.......
ImageLoader.getInstance().displayImage(url), image, options);
任何提示將不勝感激。我只是不能擺脫這個問題無論如何,既不與畢加索也沒有通用圖像裝載機.....
我以前的計算器與畢加索:
Picasso cannot load images for some URL (no special characters)
你指責畢加索和通用圖像裝載機。但這是否公平?他們只下載該圖像並將其分配給ImageView。我認爲圖像視圖拒絕這張圖片。或者是使用的位圖工廠。將照片放在設備上,然後用通常的代碼進行圖像查看。 – greenapps 2015-02-24 10:27:37