Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang111 authored Nov 19, 2018
1 parent cd5e10b commit 994a351
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,18 @@ new LinearLayoutManager(this) {
}
```

* 使用IdleHandler,替代Handler.postDelay(),IdleHandler是在我们的onResume和measure, layout, draw这么message执行结束之后, 提供了他们执行完毕的回调. [看这里](https://wetest.qq.com/lab/view/352.html)
```
Looper.myQueue().addIdleHandler(new MessageQueue.IdleHandler() {
@Override
public boolean queueIdle() {
//TODO...
return false;
}
});
```



#### 摘自[如下地址](https://github.com/jiang111/awesome-android-tips/blob/master/Authors.md)

Expand Down

0 comments on commit 994a351

Please sign in to comment.