添加监听器在Android中不可见按钮 [英] adding listener to invisible button in android

查看:130
本文介绍了添加监听器在Android中不可见按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我试图添加侦听器的按钮。
财产能见度:看不见的。
是否有可能加入?
如果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.

感谢。

这篇关于添加监听器在Android中不可见按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆