Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsjlzx authored Aug 21, 2016
1 parent 5dd41a4 commit ae94b4d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ allprojects {

Step 2. 在你的model的build.gradle文件中增加LRecyclerView依赖。
```
compile 'com.github.jdsjlzx:LRecyclerView:1.0.6'
compile 'com.github.jdsjlzx:LRecyclerView:1.0.7'
```

LRecyclerView requires at minimum Java 7 or Android 4.0.
Expand Down Expand Up @@ -87,6 +87,19 @@ RecyclerViewUtils.setHeaderView(mRecyclerView, headerView);

上面的方式同样适用于FooterView。

### 移除HeaderView、FooterView
```
//remove a HeaderView
RecyclerViewUtils.removeHeaderView(mRecyclerView);
//remove a FooterView
RecyclerViewUtils.removeFooterView(mRecyclerView);
```
注意:
>
1.如果有两个以上的HeaderView,连续调用RecyclerViewUtils.removeHeaderView(mRecyclerView)即可。


### LScrollListener-滑动监听事件接口

LScrollListener实现了nRefresh()、onScrollUp()、onScrollDown()、onBottom()、onScrolled五个事件,如下所示:
Expand Down

0 comments on commit ae94b4d

Please sign in to comment.