Skip to content

Instantly share code, notes, and snippets.

@HIFILEO
Last active December 18, 2017 21:38
Show Gist options
  • Save HIFILEO/7e615b50806201352fb9e1add905eaa3 to your computer and use it in GitHub Desktop.
Save HIFILEO/7e615b50806201352fb9e1add905eaa3 to your computer and use it in GitHub Desktop.
ViewController Ui Binding
compositeDisposable.add(RxRecyclerView.scrollEvents(nowPlayingBinding.recyclerView)
.subscribe(recyclerViewScrollEvent -> {
//Send Information To View Model
if (scrollEventCalculator.isAtScrollEnd()) {
nowPlayingViewModel.loadMoreNowPlayingInfo();
}
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment