I am using RecyclerView
for the first time. Everything is working fine except that there is no animation on item removal even though the animation on item addit
The proper way to remove an item from recycler view is to remove the item from data set and then telling the adapter that the item is removed like so
myDataset.remove(position); // myDataset is List<MyObject>
mAdapter.notifyItemRemoved(position);
Another reason for a not properly working remove animation could be the RecyclerViews
height. Verify that the height is match_parent
and NOT wrap_content
!