If a view is not visible, it can't receive a click event, right?
No. At least on Android 2.3.x
Beware, if you hide a view, remember to apply setClickable(false); after hiding it, and setClickable(true); after showing it.
Written by Samuel Barbosa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android 2.3
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#