摘要:
首先自定义一个继承自SurfaceView并且实现了SurfaceHolder.Callback接口的组件:public class CameraView extends SurfaceView implements Callback { private SurfaceHolder surfaceHolder; private Camera mCamera; public CameraView(Context context, AttributeSet attrs) { super(context, attrs); } public void ini... 阅读全文