Open Informatheus opened 8 years ago
Add and update working well, but remove animation not...
mRecyclerView = (RecyclerView) v.findViewById(R.id.recyclerview); OvershootInRightAnimator animator = new OvershootInRightAnimator(); animator.setAddDuration(1000); animator.setRemoveDuration(1000); animator.setMoveDuration(1000); animator.setChangeDuration(1000); mRecyclerView.setItemAnimator(animator);
...
public void deleteItem(ItemMes item) { getMainActivity().deleteItemFromDatabase(item.getID()); int position = mMes.getListaItens().indexOf(item); mMes.getListaItens().remove(position); mRecyclerAdapter.notifyItemRemoved(position); }
i have the same problem
same
Add and update working well, but remove animation not...
...