daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

open() not working #223

Open vincentbrison opened 9 years ago

vincentbrison commented 9 years ago

open() does not work without using a delaying handler. It even wont work if smooth is set to false.

smith2310 commented 8 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);

smith2310 commented 8 years ago

Another trick/approach for the same usage case: View view = mSwipeLayout.getChildAt(0); swipeLayout.removeView(view); swipeLayout.addView(view); swipeLayout.setSwipeEnabled(false);

blemelin commented 7 years ago

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.