I do not know why this is happening, but calling notifyItemInserted(0) (only the first position) will not animate the view. Everything works fine in other positions.
The animation working in this case:
friendsList.remove(positionFriend); friendsList.add(1, newFriend); notifyItemInserted(1); notifyItemRemoved(positionFriend+1);
Animation does not work in this case:
friendsList.remove(positionFriend); friendsList.add(0, newFriend); notifyItemInserted(0); notifyItemRemoved(positionFriend+1);
Expected Behavior: The element inserted at the top and the insertion animation happens there.
What happens: the insertion animation is not shown, in fact I think "visually", the first element disappears and the animation moves.
source share