You can try setting up surfaceView status monitoring
surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { @Override public void surfaceCreated(SurfaceHolder holder) { } @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { //这里设置显示内容尺寸 holder.setFixedSize(width, height); } @Override public void surfaceDestroyed(SurfaceHolder holder) { } }); surfaceView.setScaleY(0.5);
Hello, I also have the same problem as you. The deformation setting of the third-party SurfaceView is invalid. How did you solve the problem of setting the size of SurfaceView and the size of the internal content?
You can try setting up surfaceView status monitoring
Segmentfault is out of order?
Hello, I also have the same problem as you. The deformation setting of the third-party SurfaceView is invalid.
How did you solve the problem of setting the size of SurfaceView and the size of the internal content?