Skip to content

Commit 0760e03

Browse files
authored
Update README.md
1 parent 945f643 commit 0760e03

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PS:最近发现Glide一个问题,单页上GIF数目过多时,GIF会疯狂
2626
```
2727
2828
dependencies {
29-
implementation 'com.github.BzCoder:EasyGlide:1.0.0'
29+
implementation 'com.github.BzCoder:EasyGlide:1.0.2'
3030
}
3131
```
3232

@@ -71,6 +71,23 @@ EasyGlide.clearImage(this,imageView);
7171

7272
```
7373

74+
## 图片下载
75+
```java
76+
@AfterPermissionGranted(WRITE_EXTERNAL_PERM)
77+
private void downloadImage() {
78+
if (hasStoragePermission()) {
79+
EasyGlide.downloadImageToGallery(iv1.getContext(), url3);
80+
} else {
81+
EasyPermissions.requestPermissions(
82+
this,
83+
getString(R.string.need_write_external),
84+
WRITE_EXTERNAL_PERM,
85+
Manifest.permission.WRITE_EXTERNAL_STORAGE);
86+
}
87+
88+
}
89+
90+
```
7491
## CircleProgressView 仿微博图片加载盖层
7592
就是原封不动来自[GlideImageView](https://github.com/sunfusheng/GlideImageView) ,在布局中加入即可,有三种样式可供选择。
7693
```xml

0 commit comments

Comments
 (0)