总结的Android中surfaceView清屏的方式。两种。(目的是为了自己方便回顾)仅供参考。
publicstaticvoidqingP(){Canvascanvas=sh.lockCanvas(null);canvas.drawColor(Color.TRANSPARENT,Mode.CLEAR);Paintp=newPaint();canvas.drawBitmap(BackgroundImage,0,0,p);/**解锁画布并提交内容*/sh.unlockCanvasAndPost(