Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to control the SurfaceView's z-order
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hurri  
View profile  
 More options Mar 23 2009, 5:12 am
From: hurri <jun.lu...@gmail.com>
Date: Mon, 23 Mar 2009 02:12:36 -0700 (PDT)
Local: Mon, Mar 23 2009 5:12 am
Subject: How to control the SurfaceView's z-order
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Mar 23 2009, 1:32 pm
From: Dianne Hackborn <hack...@android.com>
Date: Mon, 23 Mar 2009 10:32:18 -0700
Local: Mon, Mar 23 2009 1:32 pm
Subject: Re: [android-developers] How to control the SurfaceView's z-order

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.

--
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »