Skip to content

Commit

Permalink
升级0.1.4,glide增加默认占位图片
Browse files Browse the repository at this point in the history
  • Loading branch information
jeasonlzy committed Apr 22, 2016
1 parent 8b65ff3 commit 4a30a1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:+' //最新版本
```
Expand Down
2 changes: 1 addition & 1 deletion bintray.gradle
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4a30a1f

Please sign in to comment.