The surface view is actually BEHIND your window, and a hole punched in the
window for you to see it.  You thus can put things on top of it in your
window, but nothing in your window can appear behind it.

On Wed, Feb 11, 2009 at 6:46 PM, Blake B. <bbuckle...@yahoo.com> wrote:

>
> I have a SurfaceView that is covering a portion of its parent, a
> RelativeLayout.  I have a background image covering the full
> RelativeLayout area, and this is my Activity's main layout.
>
> I would like to have the SurfaceView be transparent so that I can see
> through to the background image on its parent RelativeLayout.  I have
> tried the approach shown in the API Demos example
> TranslucentGLSurfaceViewActivity, but this succeeds in making the
> transparency go all the way through my Activity to my desktop!
>
> I'm using the "style/Theme.Translucent" theme on my activity, and
> setting this on my SurfaceView:
>   mySurfaceView.getHolder().setFormat(PixelFormat.RGBA_8888);
>
> The transparency to the desktop it kinda cool, but not what I'm trying
> to do!  Is it possible to make a SurfaceView transparent only through
> to its parent?
>
> Thanks,
> Blake
> >
>


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

Reply via email to