Azoft / CarouselLayoutManager

Android Carousel LayoutManager for RecyclerView
Apache License 2.0
2.56k stars 367 forks source link

can not add delete item animation? #24

Closed bluepine0808 closed 7 years ago

bluepine0808 commented 7 years ago

just add the animator like below, but the animateRemove is not called. Could you help this?

    recyclerView.setItemAnimator(new DefaultItemAnimator() {
        @Override
        public boolean animateRemove(RecyclerView.ViewHolder holder) {
            Log.e("carousel","animateRemove");
            return super.animateRemove(holder);
        }

        @Override
        public boolean animateAdd(RecyclerView.ViewHolder holder) {
            Log.e("carousel","animateAdd");
            return super.animateAdd(holder);
        }
    });
mig35 commented 7 years ago

Hi @bluepine0808 Well. Not sure why this is happening. Do you have any suggestion?

bluepine0808 commented 7 years ago

Hi @mig35 I have not found the reason. Whether would you add ItemAnimator for add/remove item?

mig35 commented 7 years ago

@bluepine0808 I'll research this issue, but not sure when. There is no plans for custom ItemAnimator.

mig35 commented 7 years ago

@bluepine0808 I figure out why this is happened. When do you need a fix?

mig35 commented 7 years ago

@bluepine0808 please check com.azoft.carousellayoutmanager:carousel:1.1.8

bluepine0808 commented 7 years ago

@mig35 Thanks very much! I will try it.