daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.37k stars 2.67k forks source link

Click is not working #416

Open TesterNs opened 7 years ago

TesterNs commented 7 years ago

I had this swipelayout in my project implemented and I've used this swipelayout for Recyclerview, in my requirement I had to swipe and Click on same side (e.g I've taken addDrag Right, I've enable both swipe and click on right side of the swipe )of the Swipelayout. But Unfortunately the click is not working on the side which I've swipe also. Please Help me solve this problem.

Thanks.

ValeryPonomarenko commented 7 years ago

https://github.com/daimajia/AndroidSwipeLayout/issues/99 Take a look at this issue. It helped me.

TesterNs commented 7 years ago

Thanks for your reply, but the solution won't suit my problem.

mertgunay commented 7 years ago

If you are using another onClick (without library ) method for reCyclerview delete it.

TesterNs commented 7 years ago

Hi mertgunay, I did what you've suggested, it worked, but by doing that I've got another issue, this swipe Layout has three layers right Swipe, left Swipe and a middle View. In my case I've used only right Swipe to delete the item and middle view to open another screen.I can drag the right swipe to a certain distance so that I can click on the right swipe to delete item, in this case when i drag the right-swipe to a certain distance and click on the middle view to close the right swipe not to take any action, but instead of that the item got deleted.Now what I've have to do to close the right swipe instead of deleting the item.

Thanks.