添加监听器在Android中不可见按钮监听器、中不、按钮、Android

2023-09-06 14:09:07 作者:傲娇小美人

喜我试图添加侦听器的按钮。财产能见度:看不见的。是否有可能加入?如果U为此提供的解决方案将是great.pls

hi i am trying to add listener for a button. with property visibility :invisible. is it possible to add? if u provide a solution for this it would be great.pls

推荐答案

您可以添加监听器。 但你不能点击隐形按钮让听者在不能运行活动的任何时间调用...

You can add listener. But you cant click invisible button so that listener cant be invoked at any time of Activity running...

但你可以使透明的图片作为背景,也文字=

but u can make transparent image as background and also text=""

所以它不会用户看到也没必要让它为不可见。

so it wont visible to user also no need to make it as invisible.

监听器还调用时用户触摸的地方。

Listener also invoked when user touch that place.

感谢。