自定义相机实现单拍和连拍功能 SurfaceView surfaceView = (SurfaceView) this .findViewById(R.id.surfaceView); //SurfaceHolder是surface的控制器 surfaceView.getHolder() .setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); surfaceView.getHolder().setFixe