cameraview
cameraview copied to clipboard
Set / Get Aspect Ratio
Hey guys,
Not sure if it is an issue, but if I set Aspect Ratio explicitly in code to, e.g. 9:16 for supporting portrait mode and then call getAspectRatio() the output will be still 16:9.
cameraView.setAspectRatio(AspectRatio.parse("9:16"));
cameraView.getAspectRatio(); // Output: "16:9"
So again not sure if it is functionality issue, or just the getter is wrongly returning.
check this https://github.com/google/cameraview/pull/218