title: Android top pagination
body: <p>I have a RecyclerView with linear layout manager. There 3 items loaded, current position after first position. I add custom RecyclerView.OnScrollListener and when i scroll down, it loads more item</p>
  
  <pre><code>adapter.updateDays(weeksList.subList(currentItem, items.size()));
  adapter.notifyItemRangeChanged(currentItem, currentItem + (items.size() - currentItem));                     
  </code></pre>
  
  <p>and i updating in my adapter class list, i don't have problems with down scroll </p>
  
  <p>but, if I scroll up, I use </p>
  
  <pre><code>adapter.updateTopDays(list.subList(0, 5));
  adapter.notifyItemRangeChanged(0, 5);
  </code></pre>
  
  <p>and in my adapter class, i update </p>
  
  <pre><code>this.items.addAll(0,list);
  notifyDataSetChanged();
  </code></pre>
  
  <p>that method cause strange behavior, like some items dissapeared, lagging, how can i fix this? </p>