vcalvello / SwipeToAction

*** WARNING: This library is no longer maintained *** An easy way to add a simple 'swipe-and-do-something' behavior to your `RecyclerView` items. Just like in Gmail or Inbox apps.
219 stars 45 forks source link

Fix for when reveal views have clickable control #4

Closed francoishill closed 11 months ago

francoishill commented 8 years ago

Previously if we added a button with its setOnClickListener it will crash if we attempt to swipe (left or right) by starting with our finger directly over the button. Although the button is "hidden" behind the "front" view.

So this fix is mainly to keep both the reveal panels invisible (GONE) when then "front" view is covering them completely. I think this is probably what most developers would expect the default behavior to be.