Android GLSurfaceView
是否可以在 GLSurfaceView 上添加 LinearLayout ? 如何在 GLSurfaceView 上覆盖 LinearLayout? 也许GLSurfaceView是游戏游乐场而LinearLayout是菜单栏~
Is it possible add LinearLayout on GLSurfaceView?
How to overlay LinearLayout over a GLSurfaceView?
maybe GLSurfaceView is Game playground and LinearLayout is menubar~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用框架布局。将 GLSurfaceView 作为 FrameLayout 中的第一个视图,然后添加 LinearLayout 第二个。这会将 LinearLayout 及其中的任何内容放在 GLSurfaceView 的顶部:
编辑:现在使用图片:
Use a FrameLayout. Have the GLSurfaceView as the first view in the FrameLayout, then add the LinearLayout second. This will put the linearLayout and anything in it over the top of the GLSurfaceView:
Edit: Now with picture: