导读:应该是: LayoutParams lp = mSurfaceView getLayoutParams(); lp width = 0; lp height =0; mSurfaceView setLayoutParams(lp);而不是mSurfaceView getHolder() setFixedSize(0, ...
应该是:
LayoutParams lp = mSurfaceView.getLayoutParams();
lp.width = 0;
lp.height =0;
mSurfaceView.setLayoutParams(lp);
而不是mSurfaceView.getHolder().setFixedSize(0,0);//这个是设置分辨率!!!!