Open iTruff opened 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
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 (
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 ...