Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created March 16, 2018 02:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save skydoves/b8d0620d14054bb80cdf546a51dcad4b to your computer and use it in GitHub Desktop.
paginator
main_recyclerView.adapter = adapter
main_recyclerView.layoutManager = LinearLayoutManager(this)
paginator = RecyclerViewPaginator(
recyclerView = main_recyclerView,
isLoading = { viewModel.isLoading },
loadMore = { loadMore(it) },
onLast = { viewModel.isOnLast }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment