GLSurfaceView - how to make translucent background

后端 未结 5 1473
日久生厌
日久生厌 2021-01-04 19:08

I try to render using GLSurfaceView, and by docs I set format:

getHolder().setFormat(PixelFormat.TRANSLUCENT);

The I use GLSurfaceView.Rend

5条回答
  •  天命终不由人
    2021-01-04 19:59

    try using setZOrderMediaOverlay(true) for the GLSurfaceView with Hardware Acceleration for the Activity set to false. That makes the GLSurfaceView background Transparent. But I am not sure how the hardware acceleration impacts it.
    Overlaying a GLSurface on top of a MapView without using SetZOrderTop.
    I had posted a question recently still looking for a better solution

提交回复
热议问题