I have looked at the answers here - Android Preventing Double Click On A Button
and implemented qezt\'s solution like and I\'ve tried setEnabled(false) like so
Qezt solution is already fine. But if you want to prevent super fast double-click, then you simply reduce the threshhold
// half a second
if (SystemClock.elapsedRealtime() - doneButtonClickTime < 500) {
return;
}
// or 100ms (1/10 of second)
if (SystemClock.elapsedRealtime() - doneButtonClickTime < 100) {
return;
}