1

I am drawing the object on GLSurfaceView using opengles. But GLSurfaceView is not the transparent. Instead of transparent its completely black in background.

Please help me how to make the GLSurfaceView transparent.

I used this code

setEGLConfigChooser(8, 8, 8, 8, 16, 0);
getHolder().setFormat(PixelFormat.TRANSLUCENT);

Thanks in advance.

anticafe
  • 6,816
  • 9
  • 43
  • 74
user2601652
  • 467
  • 2
  • 8
  • 26

1 Answers1

1

What i do to get around this is I have regular view such as LinearLayouts within the xml and i call linearLayout.addView(glSurface); linearLayout2.addView(glSurface2);

After that i call them by the order i would like: linearLayout2.bringToFront(); linearLayout.bringToFront();

Let me know if you would like me to post code.

JY2k
  • 2,879
  • 1
  • 31
  • 60