android surfaceView控制視頻顯示大小

       應該是: get

      LayoutParams lp = mSurfaceView.getLayoutParams();

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

      mSurfaceView.setLayoutParams(lp);



而不是mSurfaceView.getHolder().setFixedSize(0,0);//這個是設置分辨率!!!!

相關文章
相關標籤/搜索