Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BzCoder authored Apr 3, 2019
1 parent 945f643 commit 0760e03
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PS:最近发现Glide一个问题,单页上GIF数目过多时,GIF会疯狂
```
dependencies {
implementation 'com.github.BzCoder:EasyGlide:1.0.0'
implementation 'com.github.BzCoder:EasyGlide:1.0.2'
}
```

Expand Down Expand Up @@ -71,6 +71,23 @@ EasyGlide.clearImage(this,imageView);

```

## 图片下载
```java
@AfterPermissionGranted(WRITE_EXTERNAL_PERM)
private void downloadImage() {
if (hasStoragePermission()) {
EasyGlide.downloadImageToGallery(iv1.getContext(), url3);
} else {
EasyPermissions.requestPermissions(
this,
getString(R.string.need_write_external),
WRITE_EXTERNAL_PERM,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
}

}

```
## CircleProgressView 仿微博图片加载盖层
就是原封不动来自[GlideImageView](https://github.com/sunfusheng/GlideImageView) ,在布局中加入即可,有三种样式可供选择。
```xml
Expand Down

0 comments on commit 0760e03

Please sign in to comment.