I strongly recommend against using multiple surface views in a window. The way surface view is implemented is that a separate surface is created and Z-ordered behind its containing window, and transparent pixels drawn into the rectangle where the SurfaceView is so you can see the surface behind. We never intended to allow for multiple surface views.
On Mon, Mar 23, 2009 at 2:12 AM, hurri <jun.lu...@gmail.com> wrote: > > Hi, > I created a RelativeLayout which has 2 SurfaceView. The layout looks > like below > <RelativeLayout > android:layout_width="wrap_content" > android:layout_height="wrap_content"> > <SurfaceView android:id="@+id/main" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_centerInParent="true" > > > <SurfaceView android:id="@+id/pip" > android:layout_width="120dip" > android:layout_height="90dip" > android:layout_alignBottom="@id/main" > android:layout_alignRight="@id/main" > > > </RelativeLayout> > > It seems that the main surface is always above on pip surface even put > the pip definiation before the main. So how can i change the z-order > to bring the pip to front. > > > > -- 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. 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 -~----------~----~----~----~------~----~------~--~---