Answer the question
In order to leave comments, you need to log in
How to disable a button temporarily after activating the same button?
After activation, you need to block the same button for a certain time.
Need sample code
Answer the question
In order to leave comments, you need to log in
button.setOnClickListener {
it.isEnabled = false
it.postDelayed({ it.isEnabled = true }, 5000)
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question