Reputation: 535
So I have 3 views, one big one on top of the other two. The one on top is transparent. I want to be able to register an onTouch
event on the views behind the big one on top, while the big one does nothing.
How can one do this?
Upvotes: 6
Views: 3787
Reputation: 42849
Take a look at using onInterceptTouchEvent(TouchEvent)
from ViewGroup
. The documentation there is pretty clear on how you can achieve what you are after here. You will likely want to extend
your transparent parent (unless it is already an extension that you wrote) and override this method to do your bidding.
Upvotes: 1