// cardList
mCardListRecyclerView=view.findViewById(R.id.recycler_view_card_list);mCardListRecyclerView.addOnScrollListener(newRecyclerView.OnScrollListener(){@OverridepublicvoidonScrollStateChanged(@NonNull@NotNullRecyclerViewrecyclerView,intnewState){super.onScrollStateChanged(recyclerView,newState);}@OverridepublicvoidonScrolled(@NonNull@NotNullRecyclerViewrecyclerView,intdx,intdy){super.onScrolled(recyclerView,dx,dy);if(!recyclerView.canScrollVertically(1)){// 1 for down
loadMoreNews();}}});