Exemplo n.º 1
0
 /** 获取本地图片并显示 */
 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());
 }
Exemplo n.º 2
0
 public void displayImageFromFile(
     ImageView imageView, String imagePath, DisplayImageOptions displayImageOptions) {
   String imageUrl = ImageDownloader.Scheme.FILE.wrap(imagePath);
   imageLoader.displayImage(imageUrl, imageView, displayImageOptions);
 }