daimajia / AndroidSwipeLayout

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

Enable/disable swipe on all items without recreating adapter #438

Closed joaolisboa closed 7 years ago

joaolisboa commented 7 years ago

I'm kind of stuck here, I have an activity that depending on a certain action can either disable or enable swipe(in this scenario I don't want the user to be able to change data) and there doesn't seem to be anyway to do this without having to create the adapter again or reopening the activity(which I was doing previously but wanted to change this behavior).

joaolisboa commented 7 years ago

Nevermind, I setSwipeEnable in fillvalues instead of just GenerateView so that when changes occur(changes need to occur when swipe behavior needs to change so it's not an issue) it'll update the behavior.