Diolor / Swipecards

A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content.
Apache License 2.0
2.34k stars 582 forks source link

Is there a way to make it work without deleting the data from Adapter? #58

Open zaur opened 9 years ago

zaur commented 9 years ago

I'm trying to use SwipeCards with CursorAdapter. What I wanna achieve is to iterate through items in cursor instead of deleting swiped item from adapter. Any ideas/suggestions?

Diolor commented 8 years ago

Good question. I cannot think at this point with the current architecture to do so.

lolobosse commented 7 years ago

I got the same issue as @zaur and I solved it by proxying the Cursor in an array. This is a decent solution but it doesn't really answer the question...

(Just saying for people having the same issue :wink: ).

I tried with requery() and timestamps in the DB but it is a real mess...

rashikaranpuria commented 7 years ago

Before actually trying, does this library work with CursorAdapter ?

vishalshah133 commented 7 years ago

Yes. It does work. But it stops to swipe after the 1st card swipe. Any workarounds @Diolor ?

lolobosse commented 7 years ago

@vishalshah133 So no, it doesn't work 😆