AndroidSwipeLayout
AndroidSwipeLayout copied to clipboard
How to only swipe out using click to close option.
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 Maybe you can try SmartSwipe like this:
SmartSwipe.wrap(view)
.addConsumer(new SlidingConsumer())
.setHorizontalDrawerView(textView)
.setRelativeMoveFactor(1.0F)
;
it looks like: