user637503
user637503

Reputation: 117

adding listener to invisible button in android

I am trying to add listener for a button. with property visibility :invisible. is it possible to add?

Upvotes: 3

Views: 2020

Answers (1)

Ganapathy C
Ganapathy C

Reputation: 5999

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.

Upvotes: 5

Related Questions