Skip to content

Commit

Permalink
✨ Support to delay the custom configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyge committed Jun 8, 2017
1 parent 206d2c3 commit dcbea16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/wiki/options_manage.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class ImageOptions {
SketchImageView imageView = ...;
imageView.setOptions(ImageOptions.getDisplayOptions(context, ImageOptions.ROUND_RECT));
```
参考[ImageOptions.java](https://github.com/xiaopansky/sketch/blob/master/sample/src/main/java/me/xiaopan/sketchsample/ImageOptions.java)
参考[ImageOptions.java](../../sample/src/main/java/me/xiaopan/sketchsample/ImageOptions.java)

你还可以继承SketchImageView,然后重载setOptions()方法,如下:
```java
Expand All @@ -127,9 +127,9 @@ public class MyImageView extends SketchImageView {
}
}
```
参考[SampleImageView.java](https://github.com/xiaopansky/sketch/blob/master/sample/src/main/java/me/xiaopan/sketchsample/widget/SampleImageView.java)
参考[SampleImageView.java](../../sample/src/main/java/me/xiaopan/sketchsample/widget/SampleImageView.java)

d使用的时候就直接指定id即可
使用的时候就直接指定id即可
```java
MyImageView imageView = ...;
imageView.setOptions(ImageOptions.ROUND_RECT);
Expand Down

0 comments on commit dcbea16

Please sign in to comment.