Skip to content

Commit 3bf906f

Browse files
authored
Update README.md
1 parent 68b0f9a commit 3bf906f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,33 @@ int imageHeight = imageSize[1];
2929
int imageType = imageSize[2];
3030
```
3131

32-
或者你需要FastImageSize根据图片尺寸帮你设置View宽高 :
33-
32+
或者你需要FastImageSize根据图片尺寸帮你设置View宽高 :
3433
```java
3534
FastImageSize.with(url).into(imageView);
3635
FastImageSize.with(url).override(500).into(imageView);
3736
```
38-
override方法可以根据你提供的限制值对宽高结果进行等比例缩放
39-
37+
override方法可以根据你提供的限制值对宽高结果进行等比例缩放
4038

41-
FastImageSize默认使用UrlConnection获取InputStream读取图片的文件头,可以替换成你自己使用的第三方库,按以下方法调用即可
4239

40+
FastImageSize默认使用UrlConnection获取InputStream读取图片的文件头,可以替换成你自己使用的第三方库,按以下方法调用即可
4341
```java
4442
FastImageSize.with(url).customProvider(yourProvider).get();
4543
```
4644

47-
FastImageSize默认使用LruCache和DiskLruCache实现内存缓存和磁盘缓存,如果你不需要缓存每次都要重新读取,按以下方法调用即可
45+
FastImageSize默认使用LruCache和DiskLruCache实现内存缓存和磁盘缓存,如果你不需要缓存每次都要重新读取,按以下方法调用即可
4846
```java
4947
FastImageSize.with(url).setUseCache(false).into(imageView);
5048
```
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+
```
5155

56+
### 4.support
57+
JPEG GIF BMP PNG
58+
5259
## Thanks For
5360

5461
* http://blog.csdn.net/ryfdizuo/article/details/41250775

0 commit comments

Comments
 (0)