[Android] How to change opengl parameter EGL10.EGL_ALPHA_SIZE in custom openfl android template

Hello, openflashers!
I’m trying to create a custom android template where SDLSurface background must be transparent to see another android native view under it. In the NME solution opengl parameter EGL_ALPHA_SIZE is set to 8:

public MainView(Context context,GameActivity inActivity, boolean inTranslucent)
{
...
translucent = inTranslucent;
getHolder().setFormat( translucent ? PixelFormat.TRANSLUCENT : PixelFormat.OPAQUE );
 setZOrderMediaOverlay(true);

int alpha = translucent ? 8 : 0;
EGL10 egl = (EGL10)EGLContext.getEGL();
...
int[] attrs = { EGL10.EGL_DEPTH_SIZE, depth,
                EGL10.EGL_STENCIL_SIZE, stencil,
                EGL10.EGL_ALPHA_SIZE, alpha,
                EGL10.EGL_SAMPLE_BUFFERS, 1 /* true */,
                EGL10.EGL_SAMPLES, ::WIN_ANTIALIASING::,
                EGL10.EGL_RENDERABLE_TYPE, renderType,
                EGL10.EGL_NONE };

egl.eglChooseConfig(display, attrs, configs, 1, num_config);

How to implement it in openfl?

I need implement this case http://www.openfl.org/archive/community/general-discussion/transparent-mainviewglsurfaceview-background-android-app/ in new openfl

Hi, guys! Here are my attempts to solve the problem. I made some changes in the sdl backend SDLWindow.cpp file and rebuild lime:

SDL_GL_SetAttribute (SDL_GL_RED_SIZE, 8); //was 5
SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, 8); //was 6
SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, 8); //was 5
SDL_GL_SetAttribute (SDL_GL_ALPHA_SIZE, 8);// added

but I still can’t recieve a correct result and see no any native controls behind the view with sdl.

@singmajesty Joshua, may be you know any suggestion of making sdl android surface background transparent. This thing is necessary in porting NME stage video to openfl:)