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

Implementing undo functionality #160

Closed
arpitgoyal2008 opened this issue Sep 11, 2016 · 2 comments
Closed

Implementing undo functionality #160

arpitgoyal2008 opened this issue Sep 11, 2016 · 2 comments

Comments

@arpitgoyal2008
Copy link

arpitgoyal2008 commented Sep 11, 2016

Hi,

Is there a way I can bring old cards back after it has been swiped left? Also, is there an animation to bring card back?

If I don't add

                     public void removeFirstObjectInAdapter() {
                                    articles.remove(0);
                                    adapter.notifyDataSetChanged();
                                    Log.d("LIST", "removed object!");
                                }

then the next card just freezes.
Thanks,
Arpit

@Diolor
Copy link
Owner

Diolor commented Nov 6, 2016

These are 2 different topics. For the second you need this code to remove the item from the adapter. The adapter will take and animate always the top (first) view.

@Diolor Diolor closed this as completed Nov 6, 2016
@Diolor
Copy link
Owner

Diolor commented Nov 6, 2016

Regarding undo I opened #168

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

2 participants