daimajia / AndroidSwipeLayout

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

position of the swipe layout changes while scrolling #398

Open nithinlal191 opened 7 years ago

nithinlal191 commented 7 years ago

Now I am getting issue in listview swipe option. I am using BaseSwipeAdapter

While opening an item by swipe, then I scroll down I can see the other views also open at a particular intervel. I set the mode of the adapter to

Attributes.Mode.Single

But the same issue occurs

aitbaali commented 7 years ago

same issue, any solution @nithinlal191 ?

BJPVieira commented 7 years ago

Same issue for RecylceSwipeAdapter @nithinlal191

NewHuLe commented 7 years ago

same issue, any solution @nithinlal191 ?

BJPVieira commented 7 years ago

I sort my glitch this way into onBindViewHolder(...) viewHolder.swipeLayout.open(SwipeLayout.DragEdge.Left); viewHolder.swipeLayout.close(); viewHolder.swipeLayout.setShowMode(SwipeLayout.ShowMode.LayDown); viewHolder.swipeLayout.setLeftSwipeEnabled(false);

ideepdave commented 5 years ago

I had that issue, I was using recycler view. onverriding getItemViewType() and getItemId() worked for me.