1

I have a recyclerView list with buttons inside, one of these buttons do the exclusion of an item.

The problem: my recycler allows clicking in two buttons of exclusion at the same time, crashing my app (because he tries to delete an item with a position that was updated).

So, I don't find a solution for this, maybe disabling the rest of the buttons in recyclerView when I do the event of click (but how to do this?). Has someone a solution?

Sample: https://i.stack.imgur.com/lVGT0.png

1 Answers1

1

try this in your recyclerview

android:splitMotionEvents="false"
AskNilesh
  • 67,701
  • 16
  • 123
  • 163