RecyclerView baseadapter
2017-11-09 19:43
190 查看
RecyclerView 开源Adapter,可以加载更多,但是不能下拉刷新。
可以 头内容布局,多种布局显示,空布局;可以节省70%的代码.确定不能XrecyclerView一起用,
XrecyclerView可以下拉刷新,加载更多。
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.v4.widget.SwipeRefreshLayo刷新。
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.3'
可以 头内容布局,多种布局显示,空布局;可以节省70%的代码.确定不能XrecyclerView一起用,
XrecyclerView可以下拉刷新,加载更多。
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.v4.widget.SwipeRefreshLayo刷新。
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.5.3'
相关文章推荐
- 当 ListView 被 RecyclerView替代,我们拿什么来替代 BaseAdapterHelper 呢?
- Android开源之BaseRecyclerViewAdapterHelper(持续更新!)
- BaseRecyclerViewAdapterHelper开源项目之BaseQuickAdapter源码学习上拉加载的实现代码(三)
- RecyclerView分组之BaseRecyclerViewAdapterHelper(实现分组功能)
- RecyclerView的神器BaseQuickAdapter(BaseRecyclerViewAdapterHelper)
- BaseRecyclerViewAdapterHelper 使用注意
- BaseRecyclerViewAdapterHelper开源项目之BaseMultiItemQuickAdapter 实现多类型源码学习
- BaseRecyclerViewAdapterHelper开源项目之点击事件源码学习
- 使用BaseRecyclerViewAdapterHelper+RrecyclerView构建的多层购物车
- 8.使用BaseRecyclerViewAdapter来简化使用
- 强大的BaseRecyclerViewAdapterHelper使用
- BaseRecyclerViewAdapterHelper开源项目之点击事件源码学习
- Android开发之ButterKnife,GreenDao简单运用,以及推荐并使用一个好用的开源库BaseRecyclerViewAdapterHelper。
- RecyclerView之BaseRecyclerViewAdapterHelper(一)
- 关于BaseRecyclerViewAdapterHelper
- BaseRecyclerViewAdapterHelper 上拉加载过程产生的问题
- Android开源之BaseRecyclerViewAdapterHelper(持续更新!)
- BaseRecyclerViewAdapterHelper的使用
- BaseRecyclerViewAdapterHelper的使用姿势问题
- 简单介绍使用BaseRecyclerViewAdapterHelper