cameraview icon indicating copy to clipboard operation
cameraview copied to clipboard

Set / Get Aspect Ratio

Open roo7cause opened this issue 8 years ago • 1 comments

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.

roo7cause avatar May 09 '17 11:05 roo7cause

check this https://github.com/google/cameraview/pull/218

sibelius avatar Dec 12 '17 16:12 sibelius