I have one RecyclerView and I added list of data into the RecyclerView. I wanted to add more data in list, when last RecyclerView item is
RecyclerView
@Override public void onBindViewHolder(final RecyclerView.ViewHolderholder, int position) { if (!list.isEmpty() || list== null) { if (position == (list.size() - 1)) { // add new data (add data to list) this.notifyDataSetChanged(); } } }