SwipeActionView icon indicating copy to clipboard operation
SwipeActionView copied to clipboard

Hold the swipe appearance even if view is not scroled down

Open AlexHuicu opened this issue 6 years ago • 2 comments

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

AlexHuicu avatar Sep 05 '17 14:09 AlexHuicu

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?

Tunous avatar Sep 05 '17 14:09 Tunous

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

AlexHuicu avatar Sep 05 '17 15:09 AlexHuicu