From ae94b4d6fa6e8fa096befbb7b37f78ecc621b4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=B6=E9=A3=98=E8=88=9F?= Date: Sun, 21 Aug 2016 21:44:04 +0800 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5424281..59654c0 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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五个事件,如下所示: