RecyclerView底部加载

用LoadRecyclerView可以实现youtube的底部加载

  • Gradle
compile 'com.flobberworm:LoadRecyclerView:latest.integration'
  • Maven

  com.flobberworm
  LoadRecyclerView
  0.2.0
  pom

  • Sample Code
RecyclerManager recyclerManager = new RecyclerManager(recyclerView);
recyclerManager.setLoadStatusAdapter(adapter);//adapter is Custom Adapter
recyclerManager.setOnItemClickListener(new ItemClickSupport.OnItemClickListener() {
            @Override
            public void onItemClicked(RecyclerView recyclerView, int position, View v) {
                
            }
        });
        
recyclerManager.setOnLoadMoreListener(new OnLoadMoreListener() {
            @Override
            public void onLoadMore() {
                        
            }
        });

你可能感兴趣的:(RecyclerView底部加载)