Hey. I am trying to overlay GLSurfaceview on an existing view. Below is the code as I impose. The only thing that doesn't work is the glsurfaceview transparency on top.
view = new GLSurfaceView(this); view.setEGLConfigChooser(8, 8, 8, 8, 16, 0); view.getHolder().setFormat(PixelFormat.TRANSLUCENT); view.setRenderer(new Level1Renderer(this)); setContentView(R.layout.test); addContentView(view, new LayoutParams(100,400));
I set the background color in my renderer as
gl.glClearColor(0.0f, 0.0f, 0.0f, 0);
Can someone advise me that I'm leaving?
android transparency overlay glsurfaceview
user560571
source share