且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

试图GLSurfaceView添加到布局编程

更新时间:2023-12-02 23:32:10

想通了自己。尽管SurfaceView是View的子类,SurfaceView显示通过窗口的方式是有点滑稽,基本上画布实际上穿过surfaceview,但它背后的Z顺序。这个多面的,因为意见必须使用surfaceview.setZOrderOnTop(真)进行排序;

Figured it out myself. Even though SurfaceView is a subclass of View, the way SurfaceView displays through the window is kinda funny, Basically The canvas actually goes through the surfaceview but is behind it in Z order. Because of this Multiple surface views have to be ordered using surfaceview.setZOrderOnTop(true);

现在我只担心使得GLSurfaceView透明。

Now I just have to worry about making the GLSurfaceView Transparent.