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

How to make swipe three direction in case i have three button #160

Open
hafiz013 opened this issue Apr 25, 2019 · 1 comment
Open

How to make swipe three direction in case i have three button #160

hafiz013 opened this issue Apr 25, 2019 · 1 comment

Comments

@hafiz013
Copy link

Hi guys, I new here, my question is that if let say below placeholderswipe i got three button which are dislike, fav, like. How to make animation on left (for dislike button), right (for like button) and Top (for fav button) when click those three button.

Below here sample code that I did but I could not found for swipe top for fav button.

mSwipeView.getBuilder() .setSwipeType(SwipePlaceHolderView.SWIPE_TYPE_DEFAULT) .setDisplayViewCount(3) .setSwipeDecor(new SwipeDecor() .setPaddingTop(0) .setRelativeScale(0.01f) .setSwipeInMsgLayoutId(R.layout.swipe_left) .setSwipeOutMsgLayoutId(R.layout.swipe_right) .setSwipeInMsgGravity(Gravity.LEFT) .setSwipeOutMsgGravity(Gravity.RIGHT) .setSwipeAnimTime(1000) );

ic_fav

ic_x_op

ic_heart_op

@janishar
Copy link
Owner

Use SwipeDirectionalView: refer doc -> https://janishar.com/PlaceHolderView/docs/sdv-intro.html

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