简体   繁体   English

按钮可见性和隐形 java android studio

[英]Button visibil and Invisible java android studio

I Want to make a Button when it clicked go invisible for some second (00:05) Durning this time how to show.我想让一个按钮在点击时隐藏几秒钟 (00:05) 这一次如何显示。 How to understand this button coming after 5 second如何理解这个按钮在 5 秒后出现

You can use the CountDownTimer for that or else you can use Handler .您可以为此使用CountDownTimer ,否则您可以使用Handler With handler you can set 5000 milliseconds and button click it will hide and after time interval complete then again visible ,also with countdowntimer you can set time and button hide when click and set timer after finishing it will again displayed.使用处理程序,您可以设置 5000 毫秒,然后单击按钮将隐藏,在时间间隔完成后再次可见,还可以使用倒数计时器设置单击时的时间和按钮隐藏,并在完成后设置计时器将再次显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM