ImageLoader显示文件夹下的图片

ImageLoader displayImage方法中的参数uri有以下种格式:

 String imageUri = "http://site.com/image.png"; // from Web
 String imageUri = "file:///mnt/sdcard/image.png"; // from SD card
 String imageUri = "content://media/external/audio/albumart/13"; // from content provider
 String imageUri = "assets://image.png"; // from assets
 String imageUri = "drawable://" + R.drawable.image; // from drawables (only images, non-9patch)
参考:http://stackoverflow.com/questions/18912953/uil-doesnt-support-schemeprotocol-by-default-you-should-implement-this-suppor
方法注释中指出了其中的两种:
 
 
 
 
报错:UIL doesn't support scheme(protocol) by default [/mnt/sdcard/image.png]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))

猜你喜欢

转载自blog.csdn.net/forever_love007/article/details/43490907