andorid RecyclerView下拉刷新,上拉加载更多

描述:

andorid RecyclerView下拉刷新,上拉加载更多

运行截图:

demo

运用:

LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setAdapter(mAdapter);
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
    @Override
    public void onRefresh() {
       //refresh data here
    }

    @Override
    public void onLoadMore() {
       // load more data here
    }
});

源码下载:https://github.com/jianghejie/XRecyclerView

未经允许不得转载:安度博客 » andorid RecyclerView下拉刷新,上拉加载更多

赞 (0)
分享到:更多 ()

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址