Reputation: 384
I want to attach an onClickListener to an ImageView which is made INVISIBLE
. I know I could set it to the TRANSPARENT
color but due to certain reasons I don't want to do that and an INVISIBLE
ImageView is not listening to clicks. Is there any way to achieve the required thing?
Upvotes: 3
Views: 1208
Reputation: 93678
No, INVISIBLE views don't receive touch events. However there are a few alternatives you can use:
Least work is probably top to bottom on that list.
Upvotes: 12