From 84c03d67c4e475d317da1f92f92406a43b2de650 Mon Sep 17 00:00:00 2001 From: CymChad Date: Wed, 27 Apr 2016 00:53:29 +0800 Subject: [PATCH 1/4] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 31b1037a7..61ca2f114 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Please feel free to use this.(Love can be a **Star**) - **add The drop-down refresh, load more** - **easily create section headers** - **custom item view type** +- **add setEmptyView methods** ![demo](https://github.com/CymChad/BaseRecyclerViewAdapterHelper/blob/master/demo_res/demo.gif) # Get it @@ -153,5 +154,9 @@ public class SectionAdapter extends BaseSectionQuickAdapter { }); } ``` +#Use it setEmptyView +``` +mQuickAdapter.setEmptyView(getView()); +``` #Thanks [JoanZapata / base-adapter-helper](https://github.com/JoanZapata/base-adapter-helper) From 1ed5eab1a77071de8c3c803a365854c9a5d21e53 Mon Sep 17 00:00:00 2001 From: CymChad Date: Wed, 27 Apr 2016 01:00:20 +0800 Subject: [PATCH 2/4] Update README-cn.md --- README-cn.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README-cn.md b/README-cn.md index f7cf313ba..6745d50cd 100644 --- a/README-cn.md +++ b/README-cn.md @@ -1,4 +1,4 @@ ->由于最近用RecyclerView用的比较多所以最近写的一个开源项目,写了一个集成了RecyclerViewAdapter的常用功能的基类,希望能够帮助到大家,如果使用上遇到什么问题或想加入开发,把这个项目一起做的更好,**Star我的项目可加Q群558178792,申请的时候把GitHub的账号名字备注上否则不予通过,谢谢配合。**中国有句古话叫“授人以鱼不如授人以渔”,不仅仅提供使用,还写了如何实现的原理: +>RecyclerView作为Android最常用的控件,受益群体几乎是所有Android开发者,希望更多开发者能够一起来维护这个项目,把这个项目做得更好,帮助更多人。**Star我的项目可加Q群558178792,申请的时候把GitHub的账号名字备注上否则不予通过,谢谢配合。**中国有句古话叫“授人以鱼不如授人以渔”,不仅仅提供使用,还写了如何实现的原理: - 「[RecyclerView.Adapter优化了吗?](http://www.jianshu.com/p/411ab861034f)」 - 「[BaseRecyclerAdapter之添加动画](http://www.jianshu.com/p/fa3f97c19263)」 - 「[BaseRecyclerAdapter之添加不同布局(头部尾部)](http://www.jianshu.com/p/9d75c22f0964)」 @@ -15,6 +15,7 @@ - **新增下拉刷新、上拉加载更多** - **新增分组** - **自定义item类型** +- **添加setEmptyView方法** ![demo](https://github.com/CymChad/BaseRecyclerViewAdapterHelper/blob/master/demo_res/demo.gif) #如何使用它? @@ -159,6 +160,11 @@ public class SectionAdapter extends BaseSectionQuickAdapter { }); } ``` +#使用setEmptyView +``` +mQuickAdapter.setEmptyView(getView()); +``` + >**持续更新!,所以推荐Star项目** #感谢 From a16f4cd8503468e97ce192991ec598d46654f512 Mon Sep 17 00:00:00 2001 From: CymChad Date: Wed, 27 Apr 2016 01:02:11 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 61ca2f114..4ef218dcb 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Add it in your root build.gradle at the end of repositories: Add the dependency ``` dependencies { - compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.3' + compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.5' } ``` From c344de61e20540107dd481217e12cfda11d09871 Mon Sep 17 00:00:00 2001 From: CymChad Date: Wed, 27 Apr 2016 01:02:34 +0800 Subject: [PATCH 4/4] Update README-cn.md --- README-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-cn.md b/README-cn.md index 6745d50cd..8a03a1ca8 100644 --- a/README-cn.md +++ b/README-cn.md @@ -31,7 +31,7 @@ 然后在dependencies添加: ``` dependencies { - compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.3' + compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.5' } ```