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

阅读更多

描述:

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

运行截图:

运用:

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
    }
});

原文地址:http://itbbu.com/archives/87

你可能感兴趣的:(android,android沉浸式)