Question: re-enable button after tot secs
brunano21 opened this issue · 2 comments
brunano21 commented
I'm in the situation where I do a http request. If I get an error, I set the progress value to -1 showing the error button.
However, I would like to know how it's possible re enable the button (progress = 0) after a certain amount of seconds.
Does the library provide this mechanism? If not, what could you suggest?
Thanks!!
dmytrodanylyk commented
Create Handler object and call postDelay
method to change button state to initial, after certain amount of time.
brunano21 commented
Oh right. Thanks!