I'm not 100% sure to reply to your actual question, but I managed to
display the (bitmap-based) background of my activity behind a
GLSurfaceView by adding a setZOrderOnTop call in the activity onCreate
method:
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
...
setContentView(R.layout.my_layout);
mGLSurfaceView =
(GLSurfaceView)findViewById(R.id.theSurfaceViewInMyLayout);
mGLSurfaceView.setZOrderOnTop(true);
...
}
On May 12, 8:55 am, George <[email protected]> wrote:
> I am able to get a GLSurfaceView to have a transparent background
> with
>
> mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
> mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
>
> when I set the Activity's window background to transparent and the
> GLSurfaceView is the contentView of the Activity.
>
> But, let's say my GLSurfaceview is parented by a ViewGroup and I want
> GLSurfaceView bg to be transparent to see the Viewgroup's background -
> I am not able to do so with the code above. Is this a limitation or am
> I missing something?
>
> -George
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group
> athttp://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en