Skip to content

Ztiany/android-load-more-adapter

Repository files navigation

Android LoadMore Adapter

What is it?

WrapperAdapter can wrap your original adapter of RecyclerView to implement the load-more feature.

  • There are two load-more modes: auto loading and click to load.
  • Customizing the load-more view is supported.

Usage

see the code below:

mLoadMoreAdapter = LoadMoreAdapter.wrap(yourAdapter);
mLoadMoreAdapter.setOnLoadMoreListener(new OnLoadMoreListener() {

     @Override
     public boolean canLoadMore() {
         return true;
     }

     @Override
     public void onLoadMore() {
          ...
     }

mRecyclerView.setAdapter(mLoadMoreAdapter);

Installation

implementation 'io.github.ztiany:android-load-more-adapter:4.6.0'

About

an adapter to give you a load-more feature.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages