Open mistrydarshan99 opened 8 years ago
Same here. I tried everything but it didnt work. It happens a lot on Wiko RAINBOW devices.
Any luck?
+1
I have same issue on OPPO Device.
ColorOS v2.1.0i, Android version 5.1
For me problem was fixed by using one of the last commits instead of v1.2.0 in build.gradle:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.daimajia:AndroidSwipeLayout:f66ac6942b'
}
@antonc27 I added it but when I scroll, item changed from open to close & automatically close.
+1 Jiayu S3 Android 5.0.2 LRX22G MIUI 7 6.1.14
Same issue - android 4.2.0. Background view closes automatically after swipelayout complete animating swipe gesture.
Solution from @antonc27 works for me. Thanks @antonc27
I met the problem, and read all the issues. did daimajia not maintain this brand project?so many people want to use this good library .
+1 ASUS Zenphone 3 Android 6.0 Solution from @antonc27 works.
+1 The same habit on any FlymeOS device and on MIUI 8 devices
+1 MIUI Global 8.1
I have the same problem on a Huawei Y5II. I've tried the solution from @antonc27 but I get the next error with gradle.build:
failed to resolve: com.github.daimajia:AndroidSwipeLayout:f66ac6942b
I don't know how to fix it. Some help? Thanks.
For me it happens all the time I update textView inside swipeLayout. It is caused by requestLayout call. SwipeLayout doens't keep its open state after layout process. Currently I worked around this with adding onLayoutListener with code
if (isOpened) {
swipeLayout.open(false, false);
} else {
swipeLayout.close(false, false);
}
@antonc27 man you're the best! thank's your solution works for me!
i have tried this solution and many others but whenever i call textview.settext in onUpdate method the swipe closes itself automatically. I have even added the library as a module in my project and commented the method safeBottomViews() in updateBottomViews() in SwipeLayout.java but nothing seems to work. This library is very good no doubt but this issue is getting on my nerves now. Please if anyone got a solution then let me know. Thanks.
Solution from @antonc27 works for me. Thanks @antonc27
+1 Lenovo A319 Android 4.4.2 Solution from @antonc27 works.
I found some solution. I use swipeLayout in adapter, I use textView.setText("text"), and the item ,textView's width is WRAP_CONTENT, this situation will appear. so I set this TextView with a Fixed Width, and It works.
you should be to keep this line
mItemManger.bindView(viewHolder.itemView, position);
in onBindViewHolder
Hello,
I have to implement swipe layout in recyclerviewbut in some device its automatically close.So how to fix it.