Vision-Barcode-Scanner
Vision-Barcode-Scanner copied to clipboard
Full screen looks stretched on Galaxy S7
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?
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:
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 .