How do i pass the on click event through a view?

后端 未结 1 1624
我在风中等你
我在风中等你 2021-01-18 06:36

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 bi

相关标签:
1条回答
  • 2021-01-18 07:10

    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.

    0 讨论(0)
提交回复
热议问题