Android ImageLoader组件加载图片

ImageLoader.getInstance().displayImage(UrlVO.Host_Url+"media/"+ss[2], createurl , options);

private void intImageUtil() {
		options = new DisplayImageOptions.Builder()
				.showImageOnLoading(R.drawable.fugaiceng)
				// 加载失败的时候
				.cacheOnDisc(true).cacheInMemory(true)
				.showImageForEmptyUri(R.drawable.fugaiceng)
				.displayer(new RoundedBitmapDisplayer(40))
				.imageScaleType(ImageScaleType.IN_SAMPLE_INT)
				.bitmapConfig(Bitmap.Config.RGB_565)
				.showImageOnFail(R.drawable.fugaiceng).build();
	}

你可能感兴趣的:(android,ImageLoader)