File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -29,26 +29,33 @@ int imageHeight = imageSize[1];
29
29
int imageType = imageSize[2 ];
30
30
```
31
31
32
- 或者你需要FastImageSize根据图片尺寸帮你设置View宽高 :
33
-
32
+ 或者你需要FastImageSize根据图片尺寸帮你设置View宽高 :
34
33
``` java
35
34
FastImageSize . with(url). into(imageView);
36
35
FastImageSize . with(url). override(500 ). into(imageView);
37
36
```
38
- override方法可以根据你提供的限制值对宽高结果进行等比例缩放
39
-
37
+ override方法可以根据你提供的限制值对宽高结果进行等比例缩放
40
38
41
- FastImageSize默认使用UrlConnection获取InputStream读取图片的文件头,可以替换成你自己使用的第三方库,按以下方法调用即可
42
39
40
+ FastImageSize默认使用UrlConnection获取InputStream读取图片的文件头,可以替换成你自己使用的第三方库,按以下方法调用即可
43
41
``` java
44
42
FastImageSize . with(url). customProvider(yourProvider). get();
45
43
```
46
44
47
- FastImageSize默认使用LruCache和DiskLruCache实现内存缓存和磁盘缓存,如果你不需要缓存每次都要重新读取,按以下方法调用即可
45
+ FastImageSize默认使用LruCache和DiskLruCache实现内存缓存和磁盘缓存,如果你不需要缓存每次都要重新读取,按以下方法调用即可
48
46
``` java
49
47
FastImageSize . with(url). setUseCache(false ). into(imageView);
50
48
```
49
+ ### 3.permission
50
+ ``` xml
51
+ <uses-permission android : name =" android.permission.INTERNET" />
52
+ <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
53
+ <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
54
+ ```
51
55
56
+ ### 4.support
57
+ JPEG GIF BMP PNG
58
+
52
59
## Thanks For
53
60
54
61
* http://blog.csdn.net/ryfdizuo/article/details/41250775
You can’t perform that action at this time.
0 commit comments