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

Hold the swipe appearance even if view is not scroled down #11

Open AlexHuicu opened 7 years ago

AlexHuicu commented 7 years ago

Is this possible ? When scrolling down, views are moved to their original position

Tunous commented 7 years ago

If you return false from gesture listener methods then the view should stay in scrolled state until you call moveToOriginalPosition().

But I guess what you want to do is to set them to scrolled or not state when binding them again in ViewHolder. I can add method like moveToScrolledPosition() so you can track the scrolled state yourself and update it accordingly. Is that what you would like to use?

AlexHuicu commented 7 years ago

When user scroll the screen and the item is not visible anymore, the animation dissapears.

What you say about 'moveToScrolledPosition()' is a trick that could work. It would be called before the RecivleView or the ListView would display the view