Camera Preview Is Getting Stretched
I have written a code that used to display camera. Following is my layout file's code, Copy
in your onCreate
if that doesn't help maybe setting the rotation will?
camera.setDisplayOrientation(90);
and if that still doesn't help, all the results on Google are saying the aspect ratio of the SurfaceView must match the aspect ratio of the camera
Solution 2:
try and use different resolution and increase frame width and height
Post a Comment for "Camera Preview Is Getting Stretched"