Log in or register to post comments

Overlaying a SlidingDrawer

June 22, 2011 - 6:53pm #1

I'm trying to overlay the camera view (GLView) with a SlidingDrawer. I do this by adding a FrameLayout after the GLView that contains the SlidingDrawer.

This works just fine, but the rendering is terrible. It only fully renders the drawer when the drawer is out, occupying the whole screen. It's like it isn't redrawing or something? I'm trying to replicate the sliding drawer in the HTC camera app when you press the MENU button.

I read somewhere that I'm taking a performance hit by not rendering in OpenGL, but is it this severe? Is there a method I could call to redraw?

Thanks in advance.

Re: Overlaying a SlidingDrawer

June 23, 2011 - 3:53pm #2

I figured it out. Set the SlidingDrawer to have a transparent background:


This isn't by default, and syncs up the depth testing with the GLSurfaceView.

Log in or register to post comments