Android Multiple SurfaceViews

前端 未结 3 1661
一整个雨季
一整个雨季 2020-11-30 01:23

I\'m trying to work with 3 SurfaceViews on one screen, one on top half (BoardView), one on bottom half (StatusView), and the last one as an extra layer above the top half (T

3条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 02:08

    It sounds like the SurfaceViews are being drawn, but transparency is not enabled for whichever one is on top. In your MySurfaceView class in the surfaceCreated() method, make sure you are calling holder.setFormat(PixelFormat.TRANSPARENT);

提交回复
热议问题