/** 获取本地图片并显示 */ public static void getLocaImage(Context context, String picUrl, ImageView imageView, File path) { if (path == null) { return; } String url = path.getPath() + "/" + picUrl; String imageUrl = ImageDownloader.Scheme.FILE.wrap(url); imageLoader.displayImage(imageUrl, imageView, ImageOptHelper.getImgOptions()); }
public void displayImageFromFile( ImageView imageView, String imagePath, DisplayImageOptions displayImageOptions) { String imageUrl = ImageDownloader.Scheme.FILE.wrap(imagePath); imageLoader.displayImage(imageUrl, imageView, displayImageOptions); }