Skip to content

Commit

Permalink
更新文档,支持view pool
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleai authored Dec 21, 2016
1 parent eed1322 commit ee5ad76
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@ viewPager.setAdapter(new CommonPagerAdapter<DemoModel>(list) {
});
```

### 四、RecyclerView共享Pool时要注意:

通过自定义的[RecycledViewPool](https://github.com/ValuesFeng/CommonAdapter/blob/master/adapter/src/main/java/kale/adapter/component/RecycledViewPool.java) 来设置pool
### 四、设置RecyclerView的共享Pool

如果你要用viewPool,那么需要通过自定义的[RecycledViewPool](https://github.com/ValuesFeng/CommonAdapter/blob/master/adapter/src/main/java/kale/adapter/component/RecycledViewPool.java) 来设置pool。
```java
RecycledViewPool pool = new RecycledViewPool();

Expand Down Expand Up @@ -179,7 +178,7 @@ viewPager.setAdapter(new CommonPagerAdapter<DemoModel>(list) {

![](https://avatars3.githubusercontent.com/u/9552155?v=3&s=460)

Jack Tony: <developer_kale@foxmail.com>
Jack Tony: <developer-kale@foxmail.com>  


## License
Expand Down

0 comments on commit ee5ad76

Please sign in to comment.