Re: [android-developers] Multiple Surface Views

2010-05-24 Thread Dianne Hackborn
Multiple surface views works, but you don't want to have them overlap
because the Z-order of them is undefined.  You can draw in the main window
to render overlays on top of a surface view (see the SurfaceView Overlay API
demo).

On Thu, May 20, 2010 at 2:10 PM, Karthik Ravi Shankar r.karthi...@gmail.com
 wrote:

 Hi,

 I am working on a graphics application in Android. I have a question
 regarding MULTIPLE SURFACE VIEWS. Can I be rendering multiple surface views
 at the same time. Initially, when I had two surface views in the same
 activity, it didn't seem to work, as it used to show only one at any time.
 But, with one surface view attached to one activity, is there any way I can
 keep the background activity's Surface View alive so that both the surfaces
 get rendered together? If anybody has any idea about this, can they share
 it? Any pointers will also be helpful.

 Thanks, Karthik.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Multiple Surface Views

2010-05-20 Thread Karthik Ravi Shankar
Hi,

I am working on a graphics application in Android. I have a question
regarding MULTIPLE SURFACE VIEWS. Can I be rendering multiple surface views
at the same time. Initially, when I had two surface views in the same
activity, it didn't seem to work, as it used to show only one at any time.
But, with one surface view attached to one activity, is there any way I can
keep the background activity's Surface View alive so that both the surfaces
get rendered together? If anybody has any idea about this, can they share
it? Any pointers will also be helpful.

Thanks, Karthik.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en