Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void bindScrollEvent() {
- compositeDisposable.add(RxRecyclerView.scrollEvents(nowPlayingBinding.recyclerView)
- .subscribe(recyclerViewScrollEvent -> {
- ScrollEventCalculator scrollEventCalculator =
- new ScrollEventCalculator(recyclerViewScrollEvent);
- if (scrollEventCalculator.isAtScrollEnd()) {
- nowPlayingViewModel.loadMoreNowPlayingInfo();
- }
- }
- }));
- }
Add Comment
Please, Sign In to add comment