CardStackView icon indicating copy to clipboard operation
CardStackView copied to clipboard

Notify list issue(Perfomance issue)

Open arpitjoshi08 opened this issue 8 years ago • 6 comments

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.

arpitjoshi08 avatar Oct 04 '17 12:10 arpitjoshi08

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

kashyapasrc avatar May 11 '18 05:05 kashyapasrc

Hello , Have you found any solution for this problem?

sailywebvillee avatar Oct 12 '18 11:10 sailywebvillee

@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

arpitjoshi08 avatar Oct 12 '18 11:10 arpitjoshi08

@arpitjoshi08 Thanks I will try this

sailywebvillee avatar Oct 12 '18 11:10 sailywebvillee

@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

arpitjoshi08 avatar Oct 12 '18 11:10 arpitjoshi08

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

sailywebvillee avatar Oct 12 '18 13:10 sailywebvillee