Fighting with SurfaceView, Camera and OpenGL

后端 未结 4 2041
轮回少年
轮回少年 2020-12-14 23:15

We\'ve been fighting with some problems relating to SurfaceViews for more than a week, and find no proper solution to them. We read the other questions in the forum regardin

4条回答
  •  执笔经年
    2020-12-14 23:58

    I had the same problem: I wanted a SurfaceView under a GLSurfaceView, the first to play video and the second to run a game.

    Whatever I did, the z order between these 2 surface views appears to be random.

    But I found the solution, thanks to this post: https://stackoverflow.com/a/6028907/1557915

    The trick is to remove the use of layout, but instead use setContentView/addContentView.

提交回复
热议问题