mikepenz / FastAdapter

The bullet proof, fast and easy to use adapter library, which minimizes developing time to a fraction...
https://mikepenz.dev
Apache License 2.0
3.84k stars 494 forks source link

Question: is there a way to close the swipe menu? #938

Closed kenargo closed 4 years ago

kenargo commented 4 years ago

I'd like to programmatically close the swipe panel after the user has performed and action but I haven't found a way to do that currently.

mikepenz commented 4 years ago

That's a limitation of the ItemTouchHelper. But according to stackOverflow the best approach is to do: https://stackoverflow.com/a/32159154

Otherwise I think if you would be able to access protected methods from it, it would be done by calling this method with null

image