AndroidSwipeLayout icon indicating copy to clipboard operation
AndroidSwipeLayout copied to clipboard

How to only swipe out using click to close option.

Open welissonNeo opened this issue 5 years ago • 1 comments

I'm have a listview with a itemClickListener. When I swipe left to open and swipe out to close, the ListView item almost always accidentally click. I'm trying how to prevent that user accidentally click on the ListView firing itemClick. . Then How to disable automatically Swipe return to original position? Returning only If user click on It with options clickToClose? . After user click and swipped out, i need that Listview performs itemClick normally.

welissonNeo avatar Jun 26 '19 19:06 welissonNeo

@welissonNeo Maybe you can try SmartSwipe like this:

SmartSwipe.wrap(view)
    .addConsumer(new SlidingConsumer())
    .setHorizontalDrawerView(textView)
    .setRelativeMoveFactor(1.0F)
    ;

it looks like: slidingConsume

luckybilly avatar Jul 25 '19 09:07 luckybilly