FanFataL / swipe-controller-demo

This is source code from the article about creating swipe menu with RecyclerView without any external libraries.
285 stars 127 forks source link

Add/Show multiple buttons on the right after swiping left, close issue after swipe left #11

Open cottonmega opened 5 years ago

cottonmega commented 5 years ago

Issue 1. I have set the code to only allow swipe to the left only , this works fine. I want to close the swiped row without any button action, slowly swipe back to the right to close the row. This does not work at all. The row closes when you swipe but there is no smooth indication to the user. Clicks on the swiped row or other rows will also close the swiped row. That's a good thing too. I am actually looking for swipe code that works exactly like the Mail app on Apple IOS for swipe gestures. Your code is very close just needs the smooth swipe closing the open row back to the right. That will allow building my app to work exactly the same on both platforms. (Android and IOS)

Issue 2. I would like your advice on adding a second or third button on the right side that are revealed when I swipe left. For now I just have the single Delete Button, I also need to add a "More" button on the same side as Delete and possibly even a third button later.

Thanks for you advice on these two issues. Roy Cotton

sharon-makaron commented 5 years ago

@cottonmega I have the same issue (1). Do you have any solution for this?