Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 没有交互时如何关闭按钮的可视性_Android - Fatal编程技术网

Android 没有交互时如何关闭按钮的可视性

Android 没有交互时如何关闭按钮的可视性,android,Android,我使用了处理程序#postDelayed方法,但这会使按钮在指定时间后不可见,而不管用户是否与按钮交互。如何解决此问题?要手动更改可见性,请使用: yourbutton.setVisibility(View.INVISIBLE) 或 yourbutton.setVisibility(View.VISIBLE)当用户不进行交互时,您可以使用此链接

我使用了
处理程序
#postDelayed
方法,但这会使按钮在指定时间后不可见,而不管用户是否与按钮交互。如何解决此问题?

要手动更改可见性,请使用:

yourbutton.setVisibility(View.INVISIBLE)


yourbutton.setVisibility(View.VISIBLE)

当用户不进行交互时,您可以使用此链接