通倒是下的视图视图

由网友(为你赴汤蹈火)分享简介:在我的应用程序我对活动的顶部的片段。该片段填充整个屏幕。该片段的一部分是透明的视图,你可以看到在(属于活动)的意见。有没有一种方法,以触摸事件传输到正在片段的透明观的看法?谢谢!In my app I have a fragment on top of the activity. The fragment is f...

在我的应用程序我对活动的顶部的片段。该片段填充整个屏幕。该片段的一部分是透明的视图,你可以看到在(属于活动)的意见。有没有一种方法,以触摸事件传输到正在片段的透明观的看法? 谢谢!

In my app I have a fragment on top of the activity. The fragment is filling the whole screen. Part of the fragment is a transparent View and you can see the views under (that belong to the activity). Is there a way to transfer the touch events to the views that are under the transparent View of the fragment? Thanks!

推荐答案

在你的被覆盖的方法的onTouchEvent片段内返回false,它通过触摸事件到下层的意见

in your overriden onTouchEvent method inside the fragment return false, it passes the touch event to the lower layer views

阅读全文

相关推荐

最新文章