diff --git a/README.md b/README.md index a398648..7a25f3a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ 使用前,对于Android Studio的用户,可以选择添加: ```java - compile 'com.lzy.widget:imagepicker:0.1.3' //指定版本 + compile 'com.lzy.widget:imagepicker:0.1.4' //指定版本 compile 'com.lzy.widget:imagepicker:+' //最新版本 ``` diff --git a/bintray.gradle b/bintray.gradle index d95be6a..21a3842 100644 --- a/bintray.gradle +++ b/bintray.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' -version = "0.1.3" // 数据仓库依赖第三部分 +version = "0.1.4" // 数据仓库依赖第三部分 def siteUrl = 'https://github.com/jeasonlzy0216/NineGridView' def gitUrl = 'https://github.com/jeasonlzy0216/NineGridView.git' diff --git a/imagepicker/src/main/java/com/lzy/imagepicker/loader/GlideImageLoader.java b/imagepicker/src/main/java/com/lzy/imagepicker/loader/GlideImageLoader.java index 0e4d9a7..bb2416a 100644 --- a/imagepicker/src/main/java/com/lzy/imagepicker/loader/GlideImageLoader.java +++ b/imagepicker/src/main/java/com/lzy/imagepicker/loader/GlideImageLoader.java @@ -14,6 +14,7 @@ public void displayImage(Activity activity, String path, ImageView imageView, in Glide.with(activity) //配置上下文 .load("file://" + path) //设置图片路径 .error(R.mipmap.default_image) //设置错误图片 + .placeholder(R.mipmap.default_image) //设置占位图片 .diskCacheStrategy(DiskCacheStrategy.ALL)//缓存全尺寸 .into(imageView); }