on top of everything

I have two fragments which I need to add at same time (both to be in the fragmentmanager in same time). In the second one I have a SurfaceView that draws some logic on the canvas. But when the first, initial Fragment is shown, I see the drawing from the canvas OVER it. The ZOrder is set onTop (setZOrderOnTop(true)).

Is there way to tell it NOT to draw over the first fragment..? If I remove the setZOrderOnTop(true) call I get black background of the surfaceview which covers the Background of the layout where it persists.

Thanks

链接地址: http://www.djcxy.com/p/66772.html

上一篇: 当我调用setZOderOnTop(true)时,surfaceview消失

下一篇: 在一切之上