-1
用什麼來代替surfaceholder.settype
?如何解決SurfaceHolder.setType棄用?還有其他方法嗎?
PreviewHolder = CameraPreview.getHolder();
PreviewHolder.addCallback(this);
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB)
PreviewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);