Cipo
Cipo

Reputation: 161

Transparent SurfaceView without setZOrderOnTop(true)

I'm learning openGL. I have a background layout with 3D object and a HUD layer with some button. The HUD layer have to stay top.

I set my SurfaceView to transparent, but need use setZOrderOnTop(true) for the transparent SurfaceView. Then the 3D object cover the HUD. How "convert" my SurfaceView to transparent without change the zindex? I read all similar topic in StackOverflow, but didn't help.

pls don't link other topic because I read all.

Upvotes: 3

Views: 1728

Answers (1)

Manuel Schmitzberger
Manuel Schmitzberger

Reputation: 5468

setZOrderOnTop() works, but it means that you cannot have anything above a transparent SurfaceView, which is unfortunate.

Upvotes: 1

Related Questions