Skip to content

Commit

Permalink
📝 Update wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyge committed Sep 21, 2017
1 parent 4b7db05 commit 2d83239
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ sketchImageView.displayImage("http://t.cn/RShdS1f");
* [使用 MaxSize 读取合适尺寸的缩略图,节省内存][max_size]
* [使用 Resize 精确修改图片的尺寸][resize]
* [使用 StateImage 设置占位图片和状态图片][state_image]
* [监听准备加载、成功、失败以及下载进度事件][listener]
* [监听开始、成功、失败以及下载进度][listener]

提升用户体验:
* [使用 TransitionImageDisplayer 以自然过渡渐的变方式显示图片][transition_image_displayer]
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Basic functions:
* [Use MaxSize to read thumbnails of the right size to save memory][max_size]
* [Use Resize to precisely modify the size of the image][resize]
* [Use StateImage to set the placeholder picture and status picture][state_image]
* [Listen to ready load, success, failure, and download progress events][listener]
* [Listen to start, success, failure, and download progress events][listener]

To further enhance the user experience:
* [Use the TransitionImageDisplayer to display the image in a natural transition gradient][transition_image_displayer]
Expand Down
4 changes: 2 additions & 2 deletions docs/wiki/listener.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 监听准备加载、成功、失败以及下载进度事件
# 监听开始、成功、失败以及下载进度事件

Sketch 支持对 `准备加载``完成``失败``取消` 以及 `下载进度` 进行监听
Sketch 支持对 `开始``完成``失败``取消` 以及 `下载进度` 进行监听

注意:
* listener 默认在主线程回调,但是当 Sketch.load() 和 Sketch.download() 开启了同步后其 listener 就在运行线程回调,可能是主线程,也可能是非主线程
Expand Down
4 changes: 2 additions & 2 deletions docs/wiki/load_and_download.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Sketch 共有三个方法可供使用,你可以根据你的需求选择合适
每一种方法都有专用的 Options、Listener、Helper

* Options:用来定制请求,更详细的介绍请参考 [使用 Options 配置图片][options]
* Listener:用来监控请求的结果,更详细的介绍请参考 [监听准备加载、成功、失败以及下载进度事件][listener.md]
* Listener:用来监控请求的结果,更详细的介绍请参考 [监听开始、成功、失败以及下载进度事件][listener.md]
* Helper:用来组织请求并提交

|Method|Options|Listener|Helper|
Expand Down Expand Up @@ -91,7 +91,7 @@ Sketch.with(context).download("http://t.cn/RShdS1f", new DownloadListener() {

注意:
* 不能在主线程开启同步,否则会运行时抛异常
* 不仅下载、加载的主体过程会在当前调用线程执行,listener 回调也会在当前调用线程执行,更多listener内容请参考 [监听准备加载、成功、失败以及下载进度事件][listener.md]
* 不仅下载、加载的主体过程会在当前调用线程执行,listener 回调也会在当前调用线程执行,更多listener内容请参考 [监听开始、成功、失败以及下载进度事件][listener.md]

[SketchImageView]: ../../sketch/src/main/java/me/xiaopan/sketch/SketchImageView.java
[options]: options.md
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/sketch_image_view.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sketchImageView.setOptions(displayOptions)

### 监听显示过程和下载进度

参考 [监听准备加载、成功、失败以及下载进度事件][listener]
参考 [监听开始、成功、失败以及下载进度事件][listener]

### 显示下载进度

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import android.support.annotation.NonNull;

/**
* 请求监听器,可监听准备加载、失败、取消
* 请求监听器,可监听开始、失败、取消
*/
public interface Listener {
void onStarted();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public boolean onReadyDisplay(@Nullable UriModel uriModel) {
}

/**
* 准备加载图片
* 开始转入异步线程加载或下载图片
*
* @return 是否需要调用 invalidate() 刷新 ImageView
*/
Expand Down

0 comments on commit 2d83239

Please sign in to comment.