以下是示例代码:
FrameLayout Root = new FrameLayout(this);
this.addContentView(Root, LayoutParam0);
setContentView(this);
GLSurfaceView gls = new GLSurfaceView(this);
Root.addView(gls,0, LayoutParam1);
View view = new UnityPlayer(this);
Root.addView(view,1, LayoutParam2);
我想让view
放在最顶层,gls
放在底部,但有些Android设备会让gls
放在首位。我该如何解决?
P.S。 bringToFront()
一些Android设备会让它深入到底。 p>