GLView is I believe also a SurfaceView, and SurfaceViews just can't be
layered (actually I wouldn't recommend using more than one in a window,
period).

On Tue, Mar 31, 2009 at 9:46 AM, Taylor <[email protected]> wrote:

>
> I have a SurfaceView upon which I'm making various ongoing Canvas draw
> calls. I would like to either 1) Render GL content directly on top of
> this SurfaceView, or 2) layer a GL View with a transparent background
> on top of the underlying SurfaceView. I must be able to draw to both
> the background SurfaceView and the foreground GL View
> simultaneously.
>
> I've been tinkering with the API demos, specifically
> TranslucentGLSurfaceViewActivity and SurfaceViewOverlay, but can't
> seem to make this work. I've tried doing this in my Activity.onCreate
> () :
>
> setContentView(<background SurfaceView>);
> addContentView(<foreground GLSurfaceView>);
>
> but only the backgroundSurfaceView is visible -- the GL View is not
> visible.
>
> If anyone could provide me a bit of guidance on how to do this or
> something equivalent I would be very appreciative.
>
> Thanks
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to