File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments