Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify list issue(Perfomance issue) #14

Open
arpitjoshi08 opened this issue Oct 4, 2017 · 6 comments
Open

Notify list issue(Perfomance issue) #14

arpitjoshi08 opened this issue Oct 4, 2017 · 6 comments

Comments

@arpitjoshi08
Copy link

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
Copy link

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

@sailywebvillee
Copy link

Hello , Have you found any solution for this problem?

@arpitjoshi08
Copy link
Author

arpitjoshi08 commented Oct 12, 2018

@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
Copy link

@arpitjoshi08 Thanks I will try this

@arpitjoshi08
Copy link
Author

arpitjoshi08 commented Oct 12, 2018

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants