2015/10/31

Android SurfaceView 背景透明


Code:
surfaceViewRect.setZOrderOnTop(false);
surfaceHolderRect.setFormat(PixelFormat.TRANSPARENT);
canvas.drawColor(Color.TRANSPARENT, Mode.CLEAR);