loopeer / CardStackView

One Custom view for show something just like cards with animations.
2.18k stars 343 forks source link

Notify list issue(Perfomance issue) #14

Open arpitjoshi08 opened 7 years ago

arpitjoshi08 commented 7 years ago

I am implementing deleting functionality in this card and successfully implemented but taking so much time when notify the adapter after delete .how can i resolved this.

kashyapasrc commented 6 years ago

Hi, I am facing same issue, did you find any solution?

sailywebvillee commented 5 years ago

Hello , Have you found any solution for this problem?

arpitjoshi08 commented 5 years ago

@sailywebvillee dint get any solution yet, then i implemented card view using RecyclerView . see link - `https://stackoverflow.com/questions/32319541/android-recyclerview-overlap-items-card-stacks?rq=1

sailywebvillee commented 5 years ago

@arpitjoshi08 Thanks I will try this

arpitjoshi08 commented 5 years ago

@sailywebvillee

` public class OverlapDecoration extends RecyclerView.ItemDecoration {

private final static int vertOverlap = -40;

@Override
public void getItemOffsets (Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    final int itemPosition = parent.getChildAdapterPosition(view);
    if (itemPosition == 0) {
        return; }
    outRect.set(0, vertOverlap, 0, 0);

}

} ``

mRecyclerView.addItemDecoration(new OverlapDecoration()); mRecyclerView.setLayoutManager(new LinearLayoutManager(this));

use this code with recyclerview to overlapped item

sailywebvillee commented 5 years ago

@arpitjoshi08 Okay Thanks for your reply but actually I have to use AllMoveDownAnimatorAdapter type of animation used in this library.