Disable clicks on entire RecyclerView

Viewed 3177

I want to disable clicks on the entire RecyclerView once an item of it is clicked and enable it back again after suppose 500 milis.

The idea is just to prevent multiple rapid clicks on the items of the RecyclerView items. For example, some one may quickly tap on 3 items and all of them will get triggered.

I have tried setEnabled(false) and setClickable(false) but both of them doesn't work alone or when used together.

2 Answers

Use RxJava throttlefirst operator, pretty easy.

Related