Share a practical approach on the camera image preview:
Before the preview camera settings to add the following settings (the following is your view SurfaceView or TextureView):
1, about a preview image;
view.setScaleX(-1);
2, the vertical image previews:
view.setScaleY(-1);
3, up and down are the mirror Preview:
view.setScaleX(-1);
view.setScaleY(-1);
...