查看Framelayout的顺序

时间:2018-01-15 08:10:30

标签: android view android-framelayout bringtofront android-unity-plugin

以下是示例代码:

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设备会让它深入到底。

0 个答案:

没有答案