Vision-Barcode-Scanner icon indicating copy to clipboard operation
Vision-Barcode-Scanner copied to clipboard

Full screen looks stretched on Galaxy S7

Open LovingAndroid opened this issue 6 years ago • 2 comments

hi , when ever i use this custom SurfaceView " CameraSourcePreview "

it looks perfect on some devices , but looks weird and stretched on Galaxy S7 on Portrait mode.

what should i do to make it work with all kind of devices?

LovingAndroid avatar May 05 '18 14:05 LovingAndroid

Hi, you could try to debug the selectSizePair() in the CameraSource.java and check what if the chosen optimal resolution is the same as your device screen dimensions, my guess is I didn't anticipate devices with an aspect ratio higher than 16:10 I will look into this later at some point :+1:

wax911 avatar May 13 '18 12:05 wax911

thank you sir for your repponse <3 don't bother yourself it was my fault that i didn't use your " CameraSource.class"

i was using the default one by Google .

now can you just guide me how to take the only thing from your " CameraSource.class " to make my Camera Preview Looks fine on FullScreen ?

i'm not using Graphic Overlay or any other effects .

LovingAndroid avatar May 20 '18 15:05 LovingAndroid