wasabeef / recyclerview-animators

An Android Animation library which easily add itemanimator to RecyclerView items.
Apache License 2.0
11.49k stars 1.98k forks source link

Remove Animation doesn't work... #90

Open Informatheus opened 8 years ago

Informatheus commented 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);

}
PanduPatpat commented 8 years ago

i have the same problem

adroitandroid commented 8 years ago

same