kikoso / Swipeable-Cards

A native library providing a Tinder-like cards effect. A card can be constructed using an image and displayed with animation effects, dismiss-to-like and dismiss-to-unlike, and use different sorting mechanisms.
Apache License 2.0
1.48k stars 364 forks source link

Adding or popping cards of the stack makes card container unresponsive to drag events #60

Open aeroechelon opened 9 years ago

aeroechelon commented 9 years ago

CardStackAdapter#add() or CardStackAdapter#pop() visually adds an additional CardModel to the stack of cards as intended except you can no longer swipe the card away.

I would expect that using these methods would not break the interactivity of the stack. Anyone else have this issue?

As a side note, any clickable elements on the newly added or popped off card are still clickable. It's just the card is no longer swipeable.

diesersamat commented 9 years ago

Hack, but working. After every add simply do

mCardContainer.setAdapter(adapter);
oscar-urbina-tech commented 9 years ago

I have the same issue, doing this:

not works for me :(

ashivakarthik commented 9 years ago

@diesersamat Hi, i worked for me thank you but i want to add to the bottom of the cards but its adding on the top of cards