android surfaceView控制视频显示大小

       应该是:

      LayoutParams lp = mSurfaceView.getLayoutParams();

        lp.width = 0;
        lp.height =0;

      mSurfaceView.setLayoutParams(lp);



而不是mSurfaceView.getHolder().setFixedSize(0,0);//这个是设置分辨率!!!!

你可能感兴趣的:(android,大小,SurfaceView)