On Mon, Nov 14, 2011 at 4:36 AM, Nickw <[email protected]> wrote:

> I (and others, e.g. look at http://nhenze.net/?p=172) have managed to
> get this to work with an OpenGL surface view layered on top of a
> camera feed surface view. It works (on my test system) if (counter-
> intuitively) the OpenGL view is added *before* the camera feed.
> However, two or three times on this newsgroup, Google employees have
> stated that it isn't guaranteed to work.
>

This is not guaranteed to work. :)  It is completely undefined what Z order
you will end up with surface views that are of the same type.  There is
nothing in the code trying to control what order they appear in; the result
you get is entirely based on arbitrary luck.

The only control you have over z ordering are these:

http://developer.android.com/reference/android/view/SurfaceView.html#setZOrderMediaOverlay(boolean)

-- 
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, and so won't reply to such e-mails.  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