【问题标题】:How can I insert a button on top of a glSurfaceView?如何在 glSurfaceView 顶部插入按钮?
【发布时间】:2014-04-13 22:11:25
【问题描述】:

我试图在 GLSurface 视图上绘制 UI,但我不知道最好的方法是什么。

我阅读了这篇帖子 Drawing Android UI on top of GLSurfaceView ,但代码不在那里供我检查。

在xml布局文件中怎么做?

【问题讨论】:

    标签: android opengl-es-2.0


    【解决方案1】:

    Ciao, 你试过这两个链接吗?

    how to build a GUI/HUD over top a glSurfaceView in android https://gamedev.stackexchange.com/questions/11143/is-it-possible-to-overlay-edittext-box-on-a-glsurfaceview-on-android

    他们似乎解决了您所要求的同一点。

    根据我的经验,另一个是魅力,它是关于在 GLSurfaceView 之上安装 admob,但概念保持不变:

    Android: how to display admob ads on GLSurfaceView

    希望能帮到你。

    毛里齐奥

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-04
      • 2018-08-10
      • 1970-01-01
      • 2014-01-18
      • 2021-12-23
      • 2019-06-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多