Android – Detect when the last item in a RecyclerView is visible
You can create a callback in your adapter which will send a message to your activity/fragment every time when the last item is visible. For example, you can implement this idea in onBindViewHolder method @Override public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) { if(position==(getItemCount()-1)){ // here goes some code // callback.sendMessage(Message); } //do the rest of … Read more