title: RecyclerView : How to create insert animation effect?
body: <p>I have a <code>ReyclerView</code> working with a <code>LinearLayoutManager</code> and an <code>Adapter&lt;ViewHolder&gt;</code>.  I have a list of items I would like to display in the recyclerview with the insert (slide in) animation. How do I go about this ?</p>
  
  <p>I would like to display the animations with a linearly increasing delay based on the index of the item.</p>
  
  <p>Currently, if I use 2 buttons, 'add' and 'remove', and then do the respective operations on the recyclerview (<code>notifyItemInserted()</code> and <code>notifyItemRemoved()</code>, the animations come in nicely.</p>
  
  <p>If I programmatically loop on the data set and add the items, again, using <code>notifyItemInserted()</code>, I do not see any animation. I just see all the items appear almost at once.</p>
  
  <p>If I use Asynctasks with linear delay, and then add/remove the item in <code>OnPostExecute()</code>, I still do not see any animation. Also, I see a possibility of running into deadlocks if multiple insert threads are waiting on all remove threads to be completed (with no place for the remove threads to run).</p>
  
  <p>What am I doing wrong ?</p>
  
  <p>I have gone through most of the questions related to this on SO and have spent days poking around the animation part of the recyclerview, still no luck. </p>