CameraPreviewSample icon indicating copy to clipboard operation
CameraPreviewSample copied to clipboard

i am using the CameraPreview.java and it works well, but

Open bigsquirrel opened this issue 11 years ago • 3 comments

but it got a white vertical edge on the screen of the right. And your sample works well, it's kind of weird.

bigsquirrel avatar Jul 24 '14 08:07 bigsquirrel

Same here. I too got a vertical edge on the screen of the right

RajeshHegde avatar Feb 01 '15 09:02 RajeshHegde

Same here as well. I don't know the right solution, but it is mainly started at the line highlighted below in CameraPreviewSample.java

image

It ends up requesting a resize of the SurfaceView to better maintain the aspect ratio. The result is that the SurfaceView no longer fills/matches the parent's width (58 pixels skinnier in my case). I ended up commenting that line and the result is no white bar and the image looks good enough, for now.

Robrowski avatar Apr 27 '15 23:04 Robrowski

to remove white space from right , just hide statusBar

HovhannisyanKaro avatar Apr 14 '18 13:04 HovhannisyanKaro