syllogismos / MyntraTinder

tinder like app based on ecstasy2/tinder-card-stack
45 stars 30 forks source link

Adding buttons for like and dislike ? #1

Open iTruff opened 10 years ago

iTruff commented 10 years ago

Is it possible to do swipe animation by clicking buttons "Like" and "Dislike" ? I am trying to do this thing, but there are no method in CardsStackView to get top card view and object ...

syllogismos commented 10 years ago

Yeah, that's one more feature to add that will make it more like tinder UI..

Just add public methods you need in ProductStackView, say like dislikeTopCard and likeTopCard, you might find relevant code in MyOnTouchListener

iTruff commented 10 years ago

I tryed this thing, but in onTouch listener code that move top card use view that comes with params to onTouchListener, but if write my own public method, i will not have there top view to delete or move or smth else. This is my problem (