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

Adding buttons for like and dislike ? #1

Open
iTruff opened this issue Sep 30, 2014 · 2 comments
Open

Adding buttons for like and dislike ? #1

iTruff opened this issue Sep 30, 2014 · 2 comments
Assignees

Comments

@iTruff
Copy link

iTruff commented Sep 30, 2014

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
Copy link
Owner

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
Copy link
Author

iTruff commented Sep 30, 2014

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 (

@syllogismos syllogismos self-assigned this Sep 30, 2014
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