By using a timer, you can achieve the desired result. First, create a simple view in your layout file above the button and set its visibility to 'gone'. When the user clicks the button, change the visibility of the text to 'visible' and start the timer. After 5 seconds, set the visibility back to 'gone'. https://stackoverflow.com/questions/54095875/how-to-create-a-simple-countdown-timer-in-kotlin