I have a method that will check if the last element in a RecyclerView is completely visible by the user, so far I have this code The problem is how to check if the Recycler
Assuming you're using LinearLayoutManager
, this method should do the trick:
boolean isLastVisible() {
LinearLayoutManager layoutManager = ((LinearLayoutManager)mRecyclerView.getLayoutManager());
int pos = layoutManager.findLastCompletelyVisibleItemPosition();
int numItems = mRecyclerView.getAdapter().getItemCount();
return (pos >= numItems);
}