Tunous / SwipeActionView

Android swipe-able view, which allows users to perform actions with swipe gestures.
Apache License 2.0
198 stars 17 forks source link

Expose drag resistance from initial position outside view #25

Closed teal77 closed 4 years ago

teal77 commented 4 years ago

Hey thanks for the library.

I have a usecase where swipe action is non destructive. ie It results in an archival rather than deletion.

Having the resistance to drag is not really necessary for me and I would like to configure the view in such a way that it skips the resistance calculation. (here?)

Can you please provide an API for this? Thanks.

Tunous commented 4 years ago

Yes, that looks to be the correct place. Would you be willing to make a pull request for that? Ideally we could allow library users to choose resistance of their preference.

teal77 commented 4 years ago

Sure. Do you have a preferred name for the property? Is dragResistance good enough?

Tunous commented 4 years ago

Sounds good.