Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin1/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadCym committed Apr 27, 2016
2 parents 4c64a66 + c344de6 commit 95b8a5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README-cn.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -15,6 +15,7 @@
- **新增下拉刷新、上拉加载更多**
- **新增分组**
- **自定义item类型**
- **添加setEmptyView方法**

![demo](https://github.com/CymChad/BaseRecyclerViewAdapterHelper/blob/master/demo_res/demo.gif)
#如何使用它?
Expand All @@ -30,7 +31,7 @@
然后在dependencies添加:
```
dependencies {
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.3'
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.5'
}
```

Expand Down Expand Up @@ -159,6 +160,11 @@ public class SectionAdapter extends BaseSectionQuickAdapter<MySection> {
});
}
```
#使用setEmptyView
```
mQuickAdapter.setEmptyView(getView());
```

>**持续更新!,所以推荐Star项目**
#感谢
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,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'
}
```

Expand Down Expand Up @@ -153,5 +154,9 @@ public class SectionAdapter extends BaseSectionQuickAdapter<MySection> {
});
}
```
#Use it setEmptyView
```
mQuickAdapter.setEmptyView(getView());
```
#Thanks
[JoanZapata / base-adapter-helper](https://github.com/JoanZapata/base-adapter-helper)

0 comments on commit 95b8a5f

Please sign in to comment.