Open vincentbrison opened 9 years ago
@vincentbrison I found a trick which in my case where I disable the swipe works! You need add a dummy View as the first child of the SwipeLayout and remove the reveal view. For example, swipeLayout.removeViewAt(2); swipeLayout.setSwipeEnabled(false);
Another trick/approach for the same usage case: View view = mSwipeLayout.getChildAt(0); swipeLayout.removeView(view); swipeLayout.addView(view); swipeLayout.setSwipeEnabled(false);
Found out that if the second parameter "notify" is set to false, calling "open" with "smooth" parameter" also to false will not open the SwipeLayout. Setting "notify" to true make it work, but it's not supposed to.
open() does not work without using a delaying handler. It even wont work if smooth is set to false.