Mixing Android Views and GLSurfaceView

前端 未结 1 1378
走了就别回头了
走了就别回头了 2021-01-02 16:46

I\'m currently working on a game and I would hate to get halfway through and find that the what I\'m doing causes errors/kills performance. This is how I\'m thinking of sett

1条回答
  •  半阙折子戏
    2021-01-02 17:07

    I've been using a FrameLayout with the GLSurfaceView as the first element. I.e. at the bottom of the stack, with other views / viewgroups layered over the top of it. I'd recommend just pausing the game-loop and placing some opaque view over the top of it to hide it rather than swapping views in and out or whatever:

    
        
        
        
        
        
        
    
    

    Android Framelayout for games. Check out ma ms paint skillz

    0 讨论(0)
提交回复
热议问题